mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 05:59:50 +00:00
small fixes
This commit is contained in:
parent
36172979b4
commit
caea293759
2 changed files with 34 additions and 49 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue