Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvVarName ¶
GetEnvVarName returns the environment variable name for a config key
func IsFirstLaunch ¶
IsFirstLaunch checks if this is the first launch (no config or not onboarded)
func IsLocalProvider ¶ added in v0.2.0
IsLocalProvider returns true for providers that don't require an API key
Types ¶
type Config ¶
type Config struct {
Provider string `json:"provider"`
APIKey string `json:"api_key,omitempty"`
BaseURL string `json:"base_url,omitempty"`
Model string `json:"model"`
Onboarded bool `json:"onboarded"`
LastUpdateCheck time.Time `json:"last_update_check,omitempty"`
LatestVersion string `json:"latest_version,omitempty"`
}
Config holds the application configuration
func (*Config) ShouldCheckForUpdate ¶ added in v0.2.0
ShouldCheckForUpdate returns true if more than 24 hours since last check
Click to show internal directories.
Click to hide internal directories.