Documentation
¶
Overview ¶
Package provider re-exports the provider types from omnillm-core for API compatibility.
This allows code using "github.com/plexusone/omnillm/provider" to work unchanged when switching between omnillm (thick) and omnillm-core (thin).
Index ¶
Constants ¶
const ( RoleSystem = core.RoleSystem RoleUser = core.RoleUser RoleAssistant = core.RoleAssistant RoleTool = core.RoleTool )
Re-export role constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionChoice ¶
type ChatCompletionChoice = core.ChatCompletionChoice
ChatCompletionChoice represents a single choice in the response.
type ChatCompletionChunk ¶
type ChatCompletionChunk = core.ChatCompletionChunk
ChatCompletionChunk represents a chunk in streaming response.
type ChatCompletionRequest ¶
type ChatCompletionRequest = core.ChatCompletionRequest
ChatCompletionRequest represents a request for chat completion.
type ChatCompletionResponse ¶
type ChatCompletionResponse = core.ChatCompletionResponse
ChatCompletionResponse represents a response from chat completion.
type ChatCompletionStream ¶
type ChatCompletionStream = core.ChatCompletionStream
ChatCompletionStream is the interface for streaming responses.
type ResponseFormat ¶
type ResponseFormat = core.ResponseFormat
ResponseFormat specifies the format of the response.
type ToolFunction ¶
type ToolFunction = core.ToolFunction
ToolFunction represents the function being called.