Add reasoning_effort to openai compatible provider for grok-mini #2486
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
Allows the use of grok3-mini-high-beta and grok3-mini-high-fast-beta using OpenAI compatible provider.
https://www.reddit.com/r/Bard/comments/1jw8lap/grok_3_mini_beta_overtakes_25_pro_in_livebench/
Implementation
Add support for reasoning_effort parameter for grok3-mini models.
Screenshots
How to Test
Set up Grok in the Open AI Compatible provider, choose grok3-mini-beta or grok3-mini-fast-beta. Choose the reason_effort level from the dropdown (default = low).
Important
Add
reasoning_effortsupport for Grok 3 Mini models in OpenAI compatible provider with UI and tests.reasoning_effortparameter support for Grok 3 Mini models inOpenAiHandlerinopenai.ts.ExtensionMessageandWebviewMessageto includereasoningEffortandgrokReasoningEffort.GrokReasoningSettingscomponent inApiOptions.tsxfor UI selection of reasoning effort.openai.test.tsto verifyreasoning_effortparameter inclusion and processing ofreasoning_content.GrokReasoningSettingsinApiOptions.tsxwhen Grok 3 Mini models are selected.This description was created by
for fdc8085. It will automatically update as commits are pushed.