summaryrefslogtreecommitdiffhomepage
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 20a8bac97..5b6d51efa 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -156,6 +156,10 @@ func Load(workingDir string, debug bool) (*Config, error) {
slog.SetDefault(logger)
}
+ if cfg.Agents == nil {
+ cfg.Agents = make(map[AgentName]Agent)
+ }
+
// Override the max tokens for title agent
cfg.Agents[AgentTitle] = Agent{
Model: cfg.Agents[AgentTitle].Model,