Repository navigation
feat(v6.52.0): reasoning effort setting for AI providers (ADR-256, #310) - #311
Merged
Merged
Conversation
Advanced Settings gets a Reasoning effort dropdown (none/low/medium/high). When set, OpenAI-compatible providers send `reasoning_effort` in the chat-completions body, including Test. Blank leaves requests unchanged. Stored in the existing parameters JSON, so no migration is needed. Closes #310 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9
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.
Closes #310.
What
ModelParameters.reasoning_effort:none|low|medium|high| null. It is stored in the provider's existingparametersJSON, so there's no migration.OpenAICompatibleClientsendsreasoning_effortonly when it is set, for chat, streaming and Test. The Anthropic client never sends it./admin/aipage) get a Reasoning effort dropdown under Advanced Settings. The default is "Default (not sent)".Acceptance criteria
{model, messages, stream}.test_connection.none→reasoning_tokens: 0from LM Studio: not reproduced locally. Iris sends the field correctly. However, theqwen3.6-35b-a3binstance on the dev LM Studio ignoresreasoning_effort: none, and alsoreasoning.effortandchat_template_kwargs, and still thinks for about 160 tokens. Theqwen3.6-35b-a3b:2instance returns 0 reasoning tokens with or without the field. Whether the setting works depends on how the model is loaded in LM Studio.Tests
main, none in the files this PR touchesNot included
The issue's "Related" note (default the timeout to 120000 ms for a custom Base URL) is not in this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9