Skip to content

feat(v6.52.0): reasoning effort setting for AI providers (ADR-256, #310) - #311

Merged
cgbarlow merged 1 commit into
mainfrom
feature/reasoning-effort
Sep 27, 2026
Merged

cgbarlow merged 1 commit into
mainfrom
feature/reasoning-effort

Conversation

@cgbarlow

Copy link
Copy Markdown
Owner

Closes #310.

What

  • ModelParameters.reasoning_effort: none | low | medium | high | null. It is stored in the provider's existing parameters JSON, so there's no migration.
  • OpenAICompatibleClient sends reasoning_effort only when it is set, for chat, streaming and Test. The Anthropic client never sends it.
  • Admin → Settings → AI (and the legacy /admin/ai page) get a Reasoning effort dropdown under Advanced Settings. The default is "Default (not sent)".
  • ADR-256, SPEC-256-A, changelog, in-app guide text, and version bump to 6.52.0.

Acceptance criteria

  • Blank field → identical request. A test asserts the payload is exactly {model, messages, stream}.
  • Test button uses the setting. A respx test checks the request body sent by test_connection.
  • [~] none → reasoning_tokens: 0 from LM Studio: not reproduced locally. Iris sends the field correctly. However, the qwen3.6-35b-a3b instance on the dev LM Studio ignores reasoning_effort: none, and also reasoning.effort and chat_template_kwargs, and still thinks for about 160 tokens. The qwen3.6-35b-a3b:2 instance returns 0 reasoning tokens with or without the field. Whether the setting works depends on how the model is loaded in LM Studio.

Tests

  • Backend: 2236 passed, 9 skipped
  • Frontend vitest: 1324 passed
  • Surface parity: clean (endpoints unchanged)
  • svelte-check: 167 errors, the same as on main, none in the files this PR touches

Not 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

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
@cgbarlow
cgbarlow merged commit 3e5520f into main Sep 27, 2026
1 check passed
@cgbarlow
cgbarlow deleted the feature/reasoning-effort branch September 27, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add reasoning effort setting to AI providers

1 participant