mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 06:16:10 +00:00
fix(tts): wire dashboard tts.timeout_ms through ApplySystemConfigs + seed
ApplySystemConfigs and seedConfigForContext both handle tts.provider, tts.auto, tts.mode, tts.max_length — but neither carries tts.timeout_ms. Result: the dashboard /tts page Timeout (ms) input is inert; cfg.Tts.TimeoutMs stays at config.json default; setupTTS passes 0 to provider constructors; each provider falls back to its hardcoded default (e.g. edge = 30s). Two-line fix to mirror the existing pattern for the other tts.* keys.
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -121,6 +121,7 @@ func seedConfigForContext(ctx context.Context, sc store.SystemConfigStore, cfg *
|
||||
set("tts.auto", cfg.Tts.Auto)
|
||||
set("tts.mode", cfg.Tts.Mode)
|
||||
setInt("tts.max_length", cfg.Tts.MaxLength)
|
||||
setInt("tts.timeout_ms", cfg.Tts.TimeoutMs)
|
||||
|
||||
// Cron
|
||||
setInt("cron.max_retries", cfg.Cron.MaxRetries)
|
||||
|
||||
@@ -67,6 +67,7 @@ func (c *Config) ApplySystemConfigs(configs map[string]string) {
|
||||
str("tts.auto", &c.Tts.Auto)
|
||||
str("tts.mode", &c.Tts.Mode)
|
||||
integer("tts.max_length", &c.Tts.MaxLength)
|
||||
integer("tts.timeout_ms", &c.Tts.TimeoutMs)
|
||||
|
||||
// Cron
|
||||
integer("cron.max_retries", &c.Cron.MaxRetries)
|
||||
|
||||
Reference in new issue
Block a user