mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-08 17:06:42 +00:00
config tweaks
This commit is contained in:
10
env.go
10
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")},
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user