Versions in this module Expand all Collapse all v0 v0.8.0 Jun 27, 2026 v0.7.1 Jun 20, 2026 v0.7.0 May 30, 2026 v0.6.0 May 27, 2026 Changes in this version + const DefaultTestSystemMessage + const DefaultTestUserMessage + type TestConfig struct + Enabled *bool + SystemMessage string + UserMessage string type UIConfig + Test TestConfig + func (c *UIConfig) TestEnabled() bool + func (c *UIConfig) TestSystemMsg() string + func (c *UIConfig) TestUserMsg() string v0.5.1 May 24, 2026 v0.5.0 May 23, 2026 v0.4.0 May 21, 2026 Changes in this version + const DefaultUIRecentRequests + const MaxUIRecentRequests type Config + func (c *Config) HasModelCosts() bool + func (c *Config) ModelCost(id string) ModelCost type Model + Cost ModelCost + type ModelCost struct + CachePerMillion float64 + InputPerMillion float64 + OutputPerMillion float64 + func (c ModelCost) IsZero() bool + func (c ModelCost) RequestCost(inputTokens, outputTokens, cachedTokens int64) float64 type UIConfig + RecentRequests int v0.3.0 May 21, 2026 v0.2.0 May 14, 2026 Changes in this version + type AuthConfig struct + ClientID string + ClientSecret string + InsecureSkipVerify bool + Scopes []string + Token string + TokenURL string + Type string + type BackendConfig struct + Auth AuthConfig + BaseURL string + InsecureSkipVerify bool + Location string + Models BackendModels + Name string + Project string + Type string + func (bc *BackendConfig) UpstreamModelID(id string) string + func (bc *BackendConfig) VertexBaseURL() string + type BackendModels struct + All bool + Models []Model + func (bm *BackendModels) UnmarshalYAML(value *yaml.Node) error type Config + Backends []BackendConfig + func (c *Config) AllModels() []Model + func (c *Config) BackendForModel(id string) *BackendConfig v0.1.0 May 13, 2026 Changes in this version + const DefaultHost + const DefaultLocation + const DefaultPort + const DefaultUIMode + var ErrUsage = errors.New("usage error") + func IsLoopbackHost(host string) bool + type Config struct + Models []Model + Server ServerConfig + SourcePath string + UI UIConfig + Verbose bool + Vertex VertexConfig + func Load(flags Flags) (*Config, error) + func (c *Config) Address() string + func (c *Config) LocalModelID(upstreamID string) string + func (c *Config) UpstreamModelID(id string) string + func (c *Config) Validate() error + func (c *Config) VertexBaseURL() string + type Flags struct + ConfigPath string + Host string + Location string + Port int + Project string + UIMode string + Verbose bool + type Model struct + ID string + UpstreamID string + type ServerConfig struct + Host string + Port int + type UIConfig struct + Mode string + type VertexConfig struct + Location string + Project string