Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpenAI = "openai" Anthropic = "anthropic" Gemini = "gemini" XAI = "xai" Local = "local" )
View Source
const ( OpenAIHost = "api.openai.com" AnthropicHost = "api.anthropic.com" GeminiHost = "generativelanguage.googleapis.com" XAIHost = "api.x.ai" )
View Source
const ( OpenAIBaseURL = "https://api.openai.com/v1" AnthropicBaseURL = "https://api.anthropic.com" GeminiBaseURL = "https://generativelanguage.googleapis.com" XAIBaseURL = "https://api.x.ai/v1" LocalBaseURL = "http://127.0.0.1:11434" )
View Source
const ( OpenAIChatCompletionsPath = "/chat/completions" ResponsesPath = "/responses" AnthropicMessagesPath = "/v1/messages" OllamaNativeChatPath = "/api/chat" OpenAIV1Path = "/v1" )
View Source
const ( OpenAIDefaultModel = "gpt-4.1-mini" AnthropicDefaultModel = "claude-sonnet-4-5" GeminiDefaultModel = "gemini-2.5-flash" XAIDefaultModel = "grok-4.3" LocalDefaultModel = "llama3.1" )
View Source
const ( LocalAPIKey = Local AnthropicDefaultAPIVersion = "2023-06-01" AnthropicDefaultMaxTokens = 1024 )
View Source
const ( FieldEndpointURL = "endpoint URL" ConfigAPIKeyRequired = "api key is required" ConfigMaxResponseBodyNonNegative = "max response body must be non-negative" ConfigOpenAIEndpointRequiresMode = "openai endpoint requires mode=openai" ConfigUnsupportedOpenAIEndpoint = "unsupported openai endpoint %q" ConfigUnsupportedProviderWireMode = "unsupported mode %q" )
View Source
const (
ResponsesWireName = "responses"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigError ¶
func ConfigErrorf ¶
func ConfigFieldWrapError ¶
func ConfigWrapError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.