Documentation
¶
Overview ¶
internal/config/config.go
internal/config/env.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
func GetConfigDir() string
Types ¶
type Config ¶
type Config struct { DefaultModel string `json:"default_model" mapstructure:"default_model"` AvailableModels []string `json:"available_models" mapstructure:"available_models"` // New field OpenAIKey string `json:"openai_api_key" mapstructure:"openai_api_key"` OpenAIURL string `json:"openai_api_url" mapstructure:"openai_api_url"` AnthropicKey string `json:"anthropic_api_key" mapstructure:"anthropic_api_key"` GeminiKey string `json:"gemini_api_key" mapstructure:"gemini_api_key"` GroqKey string `json:"groq_api_key" mapstructure:"groq_api_key"` OllamaHost string `json:"ollama_host" mapstructure:"ollama_host"` Commands []CustomCommand `json:"commands" mapstructure:"commands"` }
type CustomCommand ¶
type CustomCommand struct { Name string `mapstructure:"command"` Description string `mapstructure:"description"` Example string `mapstructure:"example"` Prompt string `mapstructure:"prompt"` Variables map[string]interface{} `mapstructure:"variables"` RequireStdin bool `mapstructure:"require_stdin"` }
Click to show internal directories.
Click to hide internal directories.