Honor explicit 'disable' for reasoning effort#5739
Open
rayss868 wants to merge 1 commit intoKilo-Org:mainfrom
Open
Honor explicit 'disable' for reasoning effort#5739rayss868 wants to merge 1 commit intoKilo-Org:mainfrom
rayss868 wants to merge 1 commit intoKilo-Org:mainfrom
Conversation
|
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.
Context
This PR addresses critical issues with the
reasoning_effortimplementation for the OpenAI Compatible provider. Previously, selecting the "disable" option in the UI did not actually prevent the provider from sending reasoning parameters (specifically binarythinking) to the API. Additionally, the UI state was prone to desynchronization because the settings wrapper was dropping non-reasoning fields.Implementation
BaseOpenAiCompatibleProviderto implement anisExplicitlyDisabledcheck. This check ensures that if the user selects "disable", boththinking: { type: "enabled" }andreasoning_effortparameters are omitted from the final API request.ThinkingBudgetcomponent wrapper inOpenAICompatible.tsxto forward all configuration fields to the parent state handler. This prevents settings likethinkingBudgetfrom being lost and ensures the UI correctly reflects the "disabled" state when selected.Screenshots
How to Test
thinkingnorreasoning_effortis sent in the request body.apiConfigurationwithout losing other related fields likethinkingBudget.Get in Touch
If you have any questions about these changes, feel free to reach out!