OpenAIStreamedServiceExtra

io.cequence.openaiscala.service.OpenAIStreamedServiceExtra

Attributes

Graph
Supertypes
trait CloseableService
class Object
trait Matchable
class Any

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. Note that this is already defined in OpenAIChatCompletionStreamedServiceExtra but repeated here for clarity.

Creates a completion for the chat message(s) with streamed results. Note that this is already defined in OpenAIChatCompletionStreamedServiceExtra but repeated here for clarity.

Attributes

messages

A list of messages comprising the conversation so far.

Returns:

chat completion response

See also:

Deprecated methods

@Deprecated
def createCompletionStreamed(prompt: String, settings: CreateCompletionSettings): Source[TextCompletionResponse, NotUsed]

Creates a completion for the provided prompt and parameters with streamed results.

Creates a completion for the provided prompt and parameters with streamed results.

Attributes

prompt

The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays. Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.

Returns:

text completion response as a stream (source)

See also:
Deprecated
true

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