Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Provider string `mapstructure:"provider"`
OpenAPIPath string `mapstructure:"openapi-path"`
GCPProject string `mapstructure:"gcp-project"`
GCPLocation string `mapstructure:"gcp-location"`
Model string `mapstructure:"model"`
URL string `mapstructure:"url"`
APIKey string `mapstructure:"api-key"`
StrictSchema bool `mapstructure:"strict-schema"`
ListenAddr string `mapstructure:"listen-addr"`
SystemPrefix string `mapstructure:"base-system-prefix"`
PromptFormat string `mapstructure:"prompt-format"`
MaxRequestBytes int64 `mapstructure:"max-request-bytes"`
TimeoutSeconds int `mapstructure:"timeout-seconds"`
SchemaProfile string `mapstructure:"schema-profile"`
Insecure bool `mapstructure:"insecure"`
Mode Mode `mapstructure:"mode"`
}
Config holds all application configuration
func (*Config) ResolvedSchemaProfile ¶
ResolvedSchemaProfile returns the effective schema profile ID. If SchemaProfile is set it is used as the override; otherwise the default profile is selected based on the provider: OPENAI_202602 for openai, GEMINI_202602 for gemini.
Click to show internal directories.
Click to hide internal directories.