OpenAIChatCompletionStreamedServiceExtra

io.cequence.openaiscala.service.OpenAIChatCompletionStreamedServiceExtra

Service that offers ONLY a streamed version of OpenAI chat completion endpoint.

Attributes

Since:

March 2024

Graph
Supertypes
trait CloseableService
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Type members

Inherited classlikes

Attributes

Inherited from:
OpenAIServiceConsts
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

Creates a completion for the chat message(s) with streamed results.

Creates a completion for the chat message(s) with streamed results.

Attributes

messages

A list of messages comprising the conversation so far.

Returns:

chat completion response

See also:

Inherited methods

def close(): Unit

Closes the underlying ws client, and releases all its resources.

Closes the underlying ws client, and releases all its resources.

Attributes

Inherited from:
CloseableService

Inherited fields

protected val configFileName: String

Attributes

Inherited from:
OpenAIServiceConsts
protected val configPrefix: String

Attributes

Inherited from:
OpenAIServiceConsts
protected val defaultCoreUrl: String

Attributes

Inherited from:
OpenAIServiceConsts