Skip to content

Commit

Permalink
OpenAIServiceStreamedExtraImpl - deprecating listFineTuneEventsStream…
Browse files Browse the repository at this point in the history
…ed (not supported anymore)
  • Loading branch information
peterbanda committed Sep 29, 2023
1 parent 9dbe702 commit 4020c41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ trait OpenAIServiceStreamedExtra extends OpenAIServiceConsts {
* @see
* <a href="https://beta.openai.com/docs/api-reference/fine-tunes/events">OpenAI Doc</a>
*/
@Deprecated
def listFineTuneEventsStreamed(
fineTuneId: String
fineTuneId: String,
after: Option[String] = None,
limit: Option[Int] = None
): Source[FineTuneEvent, NotUsed]
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ private trait OpenAIServiceStreamedExtraImpl
}

override def listFineTuneEventsStreamed(
fineTuneId: String
fineTuneId: String,
after: Option[String],
limit: Option[Int]
): Source[FineTuneEvent, NotUsed] =
execJsonStreamAux(
EndPoint.fine_tunes,
"GET",
endPointParam = Some(s"$fineTuneId/events"),
params = Seq(
Param.after -> after,
Param.limit -> limit,
Param.stream -> Some(true)
)
).map { json =>
Expand Down

0 comments on commit 4020c41

Please sign in to comment.