extension

sttp.openai.streaming.fs2.`package`.extension
implicit class extension(val client: OpenAI)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def createStreamedChatCompletion[F[_] : RaiseThrowable](chatBody: ChatBody): StreamRequest[Either[OpenAIException, Stream[F, ChatChunkResponse]], Fs2Streams[F]]

Creates and streams a model response as chunk objects for the given chat conversation defined in chatBody.

Creates and streams a model response as chunk objects for the given chat conversation defined in chatBody.

https://platform.openai.com/docs/api-reference/chat/create

Value parameters

chatBody

Chat request body.

Attributes

Concrete fields

val client: OpenAI