From 6bd65549975a8a77cfd62f648e797dfb26f71c51 Mon Sep 17 00:00:00 2001 From: Laura Date: Mon, 18 Aug 2025 05:15:48 +0200 Subject: [PATCH] config tweaks --- env.go | 10 ++++++++-- example.config.yml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/env.go b/env.go index bc0f407..f02c5b3 100644 --- a/env.go +++ b/env.go @@ -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")}, diff --git a/example.config.yml b/example.config.yml index 77d10fb..9287c5e 100644 --- a/example.config.yml +++ b/example.config.yml @@ -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