1e0101efe61dc3cda0226d762817e5354c7a68bc

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Fix flag parsing: drop bool default, rename audio url flag to --audio.url

Diff

 1diff --git a/internal/config/config.go b/internal/config/config.go
 2index 31895cf7dce354a04fe94641f5c13b20ef3c49d9..2ef583085f731b9275c2af3a2c4c7a0cfc752597 100644
 3--- a/internal/config/config.go
 4+++ b/internal/config/config.go
 5@@ -19,7 +19,7 @@ type LLMConfig struct {
 6 }
 7 
 8 type AudioConfig struct {
 9-	AudioBaseURL string `long:"audio-url" env:"BASE_URL" default:"http://127.0.0.1:9932" description:"audio.cpp server base URL (TTS + ASR)"`
10+	AudioBaseURL string `long:"url" env:"BASE_URL" default:"http://127.0.0.1:9932" description:"audio.cpp server base URL (TTS + ASR)"`
11 }
12 
13 // Config is the shared option group. Parsed with github.com/jessevdk/go-flags.
14@@ -28,7 +28,7 @@ type Config struct {
15 	AudioConfig AudioConfig `group:"audio" namespace:"audio" env-namespace:"JP_AUDIO"`
16 
17 	Scenario            string `long:"scenario" env:"JP_SCENARIO_PATH" default:"assets/scenarios/small_city.md" description:"path to the scenario brief file"`
18-	DisableModelLoading bool   `long:"disable-model-loading" env:"JP_DISABLE_MODEL_LOADING" default:"false" description:"connect to external model services instead of spawning them"`
19+	DisableModelLoading bool   `long:"disable-model-loading" env:"JP_DISABLE_MODEL_LOADING" description:"connect to external model services instead of spawning them"`
20 }
21 
22 // ServerConfig is the kaiwari-server option group: the shared Config plus the HTTP