From af7270967c705b163d2c2baaf8752ab279af8a60 Mon Sep 17 00:00:00 2001 From: Gregory Gauthier Date: Wed, 4 Mar 2026 11:09:34 +0000 Subject: [PATCH] fix(config): correct chat model config key Update the Viper default key for the chat command from "commands.chat" to "commands.chat.model" to match expected structure. Remove redundant comment in GetTimeout function for cleaner code. --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index b0767c7..e4fdee1 100644 --- a/config/config.go +++ b/config/config.go @@ -36,7 +36,7 @@ func Load() { viper.SetDefault("commands.prdescribe.model", "grok-4") viper.SetDefault("commands.review.model", "grok-4") viper.SetDefault("commands.docs.model", "grok-4") - viper.SetDefault("commands.chat", "grok-4-1") + viper.SetDefault("commands.chat.model", "grok-4-1") viper.SetDefault("commands.chat-agent.model", "grok-4-1-fast-non-reasoning") // Config file is optional, so we ignore read errors _ = viper.ReadInConfig() @@ -62,7 +62,7 @@ func GetTemperature() float64 { func GetTimeout() int { timeout := viper.GetInt("timeout") if timeout <= 0 { - return 60 // Default 60 seconds + return 60 } return timeout }