agents: set reasoningEffort per profile; rename thinkingBudget tag

Reasoning effort is part of an agent's behavior definition, so set it
on all 14 profiles keyed to role (planning/review high, general medium,
lightweight assist low). Also rename the ThinkingBudget json tag from
the confusing bare "reasoning" to "thinkingBudget", distinct from the
reasoningEffort string knob. No config migration needed — no profile or
backends.conf used the old "reasoning" key.
This commit is contained in:
Ollie Agent 2026-09-07 13:27:33 +02:00
parent 9395a0e07b
commit 6c7e5864c4
15 changed files with 29 additions and 15 deletions

View File

@ -154,7 +154,7 @@ type GenerationParams struct {
FrequencyPenalty *float64 `json:"frequencyPenalty,omitempty"`
PresencePenalty *float64 `json:"presencePenalty,omitempty"`
RepetitionPenalty *float64 `json:"repetitionPenalty,omitempty"`
ThinkingBudget int `json:"reasoning,omitempty"`
ThinkingBudget int `json:"thinkingBudget,omitempty"`
ReasoningEffort string `json:"reasoningEffort,omitempty"`
IncludeReasoning *bool `json:"includeReasoning,omitempty"`
ResponseFormat string `json:"responseFormat,omitempty"`

View File

@ -30,5 +30,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "medium"
}

View File

@ -28,5 +28,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "high"
}

View File

@ -26,5 +26,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 8192
"maxTokens": 8192,
"reasoningEffort": "low"
}

View File

@ -33,5 +33,6 @@
"lsp_symbols"
],
"temperature": 0.5,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "medium"
}

View File

@ -44,5 +44,6 @@
"backend": "openrouter",
"model": "deepseek/deepseek-v4-flash",
"temperature": 0.4,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "high"
}

View File

@ -26,5 +26,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "medium"
}

View File

@ -17,5 +17,6 @@
"file_grep"
],
"temperature": 0.3,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "high"
}

View File

@ -17,5 +17,6 @@
"codebase_overview"
],
"temperature": 0.3,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "medium"
}

View File

@ -26,5 +26,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 8192
"maxTokens": 8192,
"reasoningEffort": "low"
}

View File

@ -23,5 +23,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 4096
"maxTokens": 4096,
"reasoningEffort": "low"
}

View File

@ -27,5 +27,6 @@
"lsp_diagnostics"
],
"temperature": 0.7,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "medium"
}

View File

@ -27,5 +27,6 @@
"lsp_diagnostics"
],
"temperature": 0.5,
"maxTokens": 16384
"maxTokens": 16384,
"reasoningEffort": "high"
}

View File

@ -19,5 +19,6 @@
"file_grep"
],
"temperature": 0.3,
"maxTokens": 8192
"maxTokens": 8192,
"reasoningEffort": "low"
}

View File

@ -26,5 +26,6 @@
"lsp_diagnostics"
],
"temperature": 0.3,
"maxTokens": 8192
"maxTokens": 8192,
"reasoningEffort": "low"
}