mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 09:19:54 +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"`
|
Authentication EnvAuthentication `json:"authentication"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var env Environment
|
var env = Environment{
|
||||||
|
// defaults
|
||||||
|
Settings: EnvSettings{
|
||||||
|
CleanContent: true,
|
||||||
|
MaxIterations: 3,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
file, err := os.OpenFile("config.yml", os.O_RDONLY, 0)
|
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.openrouter": {yaml.HeadComment(" openrouter.ai api token (required)")},
|
||||||
"$.tokens.exa": {yaml.HeadComment(" exa search api token (optional; used by search tools)")},
|
"$.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)")},
|
"$.settings.iterations": {yaml.HeadComment(" max model turns per request (optional; default: 3)")},
|
||||||
|
|
||||||
"$.authentication.enabled": {yaml.HeadComment(" require login with username and password")},
|
"$.authentication.enabled": {yaml.HeadComment(" require login with username and password")},
|
||||||
|
@@ -10,7 +10,7 @@ tokens:
|
|||||||
exa: ""
|
exa: ""
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
# normalize unicode in assistant output (optional; default: false)
|
# normalize unicode in assistant output (optional; default: true)
|
||||||
cleanup: true
|
cleanup: true
|
||||||
# max model turns per request (optional; default: 3)
|
# max model turns per request (optional; default: 3)
|
||||||
iterations: 3
|
iterations: 3
|
||||||
|
Reference in New Issue
Block a user