mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 01:14:52 +01:00
small fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user