Files
gnoma/internal/config/defaults.go
T
vikingowl 0a1730943f fix: provider-agnostic startup + slm setup auto-config
Remove the hardcoded mistral default so gnoma starts without any
provider configured. TUI mode uses a stubProvider that lets CLI agent
arms (claude, gemini, etc.) handle routing; pipe mode prints a clear
setup message.

Also: gnoma slm setup now auto-writes the default model_url to the
global config when none is set, instead of erroring.
2026-05-07 17:05:06 +02:00

24 lines
444 B
Go

package config
import "time"
func Defaults() Config {
return Config{
Provider: ProviderSection{
Default: "",
Model: "",
MaxTokens: 8192,
APIKeys: make(map[string]string),
Endpoints: make(map[string]string),
},
Permission: PermissionSection{
Mode: "auto",
},
Tools: ToolsSection{
BashTimeout: Duration(30 * time.Second),
MaxFileSize: 1 << 20, // 1MB
},
Session: SessionSection{MaxKeep: 20},
}
}