Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuiltInProviders = map[string]ProviderDefinition{ "anthropic": { Name: "Native Anthropic", BaseURL: "", Model: "", RequiresAPIKey: false, }, "zai": { Name: "Z.AI", BaseURL: "https://api.z.ai/api/anthropic", Model: "glm-4.7", RequiresAPIKey: true, EnvVars: []string{"ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.7-flash"}, }, "minimax": { Name: "MiniMax", BaseURL: "https://api.minimax.io/anthropic", Model: "MiniMax-M2.5", RequiresAPIKey: true, EnvVars: []string{ "ANTHROPIC_SMALL_FAST_MODEL_TIMEOUT=120", "ANTHROPIC_SMALL_FAST_MAX_TOKENS=24576", }, }, "kimi": { Name: "Moonshot AI", BaseURL: "https://api.kimi.com/coding/", Model: "kimi-for-coding", RequiresAPIKey: true, EnvVars: []string{ "ANTHROPIC_SMALL_FAST_MODEL_TIMEOUT=240", "ANTHROPIC_SMALL_FAST_MAX_TOKENS=200000", }, }, "deepseek": { Name: "DeepSeek AI", BaseURL: "https://api.deepseek.com/anthropic", Model: "deepseek-chat", RequiresAPIKey: true, EnvVars: []string{ "API_TIMEOUT_MS=600000", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1", }, }, "custom": { Name: "Custom Provider", BaseURL: "", Model: "", RequiresAPIKey: true, }, }
BuiltInProviders contains the definitions of all supported built-in providers. Note: EnvVars are hardcoded configuration values defined by Kairo maintainers, not user input. They contain only timeout/model settings - no sensitive data. Provider-specific secrets (API keys) are stored separately in encrypted form.
Functions ¶
func GetProviderList ¶
func GetProviderList() []string
GetProviderList returns a list of all built-in provider names in display order.
func IsBuiltInProvider ¶
IsBuiltInProvider returns true if the given name is a built-in provider.
func RequiresAPIKey ¶
RequiresAPIKey returns true if the provider requires an API key to configure.
Types ¶
type ProviderDefinition ¶
type ProviderDefinition struct {
Name string
BaseURL string
Model string
EnvVars []string
RequiresAPIKey bool
}
ProviderDefinition contains the configuration for a provider.
func GetBuiltInProvider ¶
func GetBuiltInProvider(name string) (ProviderDefinition, bool)
GetBuiltInProvider returns the provider definition and whether it exists.