1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 17:06:42 +00:00

config tweaks

This commit is contained in:
2025-08-18 05:15:48 +02:00
parent 9f7f49b9eb
commit 6bd6554997
2 changed files with 9 additions and 3 deletions

10
env.go
View File

@@ -41,7 +41,13 @@ type Environment struct {
Authentication EnvAuthentication `json:"authentication"`
}
var env Environment
var env = Environment{
// defaults
Settings: EnvSettings{
CleanContent: true,
MaxIterations: 3,
},
}
func init() {
file, err := os.OpenFile("config.yml", os.O_RDONLY, 0)
@@ -119,7 +125,7 @@ func (e *Environment) Store() error {
"$.tokens.openrouter": {yaml.HeadComment(" openrouter.ai api token (required)")},
"$.tokens.exa": {yaml.HeadComment(" exa search api token (optional; used by search tools)")},
"$.settings.cleanup": {yaml.HeadComment(" normalize unicode in assistant output (optional; default: false)")},
"$.settings.cleanup": {yaml.HeadComment(" normalize unicode in assistant output (optional; default: true)")},
"$.settings.iterations": {yaml.HeadComment(" max model turns per request (optional; default: 3)")},
"$.authentication.enabled": {yaml.HeadComment(" require login with username and password")},

View File

@@ -10,7 +10,7 @@ tokens:
exa: ""
settings:
# normalize unicode in assistant output (optional; default: false)
# normalize unicode in assistant output (optional; default: true)
cleanup: true
# max model turns per request (optional; default: 3)
iterations: 3