Repository navigation
fix(chart,python,file): apply the configured reasoning effort to inner agents - #1520
Merged
yileicn merged 1 commit intoNov 26, 2026
Merged
Conversation
…r agents Chart plotting, python code generation and file select built their inner agent's LlmConfig without a model, so the provider never matched it against the request model and ignored the configured ReasoningEffortLevel. Pass the provider and model in, and drop the hardcoded "minimal" default, which models such as gpt-6-luna reject. Without a configured effort, the model's default in LlmProviders applies, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PlotChartFn,PyProgrammerFnandFileInstructService.SelectFilesbuild an inner agent whoseLlmConfighasMaxOutputTokensandReasoningEffortLevelbut noProvider/Model. The provider and model are passed toCompletionProvider.GetChatCompletionseparately.The OpenAI (and Google AI) chat providers only take the effort from
agent.LlmConfigwhen_model == agent.LlmConfig.Model. WithModelleft null that never matches, soChartHandler:ChartPlot:ReasoningEffortLevel,Coding:CodeGeneration:ReasoningEffortLevelandConversation:FileSelect:ReasoningEffortLevelare silently ignored and the model's default fromLlmProvidersis used instead.PlotChartFnandPyProgrammerFnalso default the effort to a hardcoded"minimal", which newer models that do not offerminimalwould reject once the value is actually sent.Changes
Provider/Modelon the inner agent'sLlmConfigin all three places, using the same provider/model the completion is created with."minimal"default inPlotChartFnandPyProgrammerFn.Behavior
Reasoning.Parameters.EffortLevel.DefaultinLlmProvidersapplies, the same as before.reasoning_effort_levelstill takes precedence.Note for existing deployments: a configured
ReasoningEffortLevelthat the configured model does not support used to be ignored and will now be sent, so the request will fail. Check these three sections when upgrading.Testing
Build-verified (
BotSharp.Core,BotSharp.Plugin.ChartHandler,BotSharp.Plugin.PythonInterpreter). Not exercised at runtime.Follow-up to #1515.
🤖 Generated with Claude Code