From caea29375994373f6027c8dc4d8aa536c4e135e7 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 17 Apr 2025 12:44:15 +0200 Subject: small fixes --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config') 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, -- cgit v1.2.3