io.cequence.openaiscala.service.OpenAIChatCompletionService
Service that offers ONLY OpenAI chat completion endpoint. Note that this trais is
usable also for OpenAI-API-compatible services such as FastChat, Ollama, or OctoML.
Attributes Since: March
2024
Graph Reset zoom Hide graph Show graph
Supertypes trait CloseableService
class Object
trait Matchable
class Any
Known subtypes Members list Concise view
Type members
Attributes Inherited from: OpenAIServiceConsts Graph Reset zoom Hide graph Show graph
Supertypes class Object
trait Matchable
class Any
Value members
Creates a model response for the given chat conversation.
Creates a model response for the given chat conversation.
Attributes messages A list of messages comprising the conversation so far.
Returns: chat completion response
See also:
Closes the underlying ws client, and releases all its resources.
Closes the underlying ws client, and releases all its resources.
Attributes Inherited from: CloseableService