0a1730943f
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.
24 lines
444 B
Go
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},
|
|
}
|
|
}
|