OpenAICompatibleDialect

org.llm4s.llmconnect.provider.OpenAICompatibleDialect
See theOpenAICompatibleDialect companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def lenientToolCalls(toolCalls: Value): Seq[ToolCall]

Parses a tool_calls array without failing: a missing id or name becomes "", and missing or unparseable arguments become {}.

Parses a tool_calls array without failing: a missing id or name becomes "", and missing or unparseable arguments become {}.

Attributes

def standard(extraHeaders: Seq[(String, String)]): OpenAICompatibleDialect

The plain OpenAI chat-completions format, sending extraHeaders on every request. This is the whole of the generic openai-compatible provider's dialect: its headers come from config.

The plain OpenAI chat-completions format, sending extraHeaders on every request. This is the whole of the generic openai-compatible provider's dialect: its headers come from config.

Attributes

Concrete fields

The plain OpenAI chat-completions format, with no extra headers.

The plain OpenAI chat-completions format, with no extra headers.

Attributes