Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvAIEnabled = "FLATT_AI_ENABLED" EnvAISelection = "FLATT_AI_SELECTION" EnvOpenAIAPIKey = "OPENAI_API_KEY" EnvOpenRouterAPIKey = "OPENROUTER_API_KEY" EnvOpenAIBaseURL = "FLATT_OPENAI_BASE_URL" EnvOpenRouterBaseURL = "FLATT_OPENROUTER_BASE_URL" EnvOllamaBaseURL = "FLATT_OLLAMA_BASE_URL" )
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
Types ¶
type AISelection ¶
func ParseAISelection ¶
func ParseAISelection(value string) (AISelection, error)
type Config ¶
type Config struct {
AIEnabled bool
AISelection string
OpenAIAPIKey string
OpenRouterAPIKey string
OpenAIBaseURL string
OpenRouterBaseURL string
OllamaBaseURL string
Values map[string]string
}
func DefaultConfig ¶
func DefaultConfig() Config
func (Config) APIKeyForProvider ¶
func (Config) Selection ¶
func (c Config) Selection() (AISelection, error)
Click to show internal directories.
Click to hide internal directories.