small fixes

This commit is contained in:
Kujtim Hoxha
2025-04-17 12:44:15 +02:00
parent 36172979b4
commit caea293759
2 changed files with 34 additions and 49 deletions

View File

@@ -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,