Skip to content

Conversation

roomote[bot]
Copy link

@roomote roomote bot commented Oct 12, 2025

This PR attempts to address Issue #8624.

Summary

Added an "OFF" option to the reasoning effort dropdown to allow users to completely disable reasoning for models that support it, particularly for Deepseek v3.1 on OpenRouter.

Changes

  • Added "off" as a valid option in ReasoningEffortWithMinimal type
  • Updated ThinkingBudget component to show "OFF" option in dropdown
  • Modified shouldUseReasoningEffort to return false when set to "off"
  • Updated API transform logic to handle "off" value properly
  • Added translation for "off" option in English locale
  • Fixed requesty provider to exclude "off" from reasoning_effort API calls

Testing

  • All existing tests pass
  • TypeScript compilation succeeds
  • Linting checks pass

Fixes #8624

Feedback and guidance are welcome!


Important

Add "OFF" option to reasoning effort dropdown, updating types, UI, API logic, and translations.

  • Behavior:
    • Added "OFF" option to ReasoningEffortWithMinimal type in model.ts.
    • Updated ThinkingBudget component to include "OFF" in dropdown.
    • Modified shouldUseReasoningEffort in api.ts to return false for "OFF".
    • Updated API transform logic in reasoning.ts to handle "OFF" value.
    • Excluded "OFF" from reasoning_effort API calls in requesty.ts.
  • Translations:
    • Added translation for "OFF" option in settings.json.
  • Testing:
    • All existing tests pass.
    • TypeScript compilation and linting checks pass.

This description was created by Ellipsis for 12bf42d. You can customize this summary. It will automatically update as commits are pushed.

- Added "off" as a valid option in ReasoningEffortWithMinimal type
- Updated ThinkingBudget component to show "off" option in dropdown
- Modified shouldUseReasoningEffort to return false when set to "off"
- Updated API transform logic to handle "off" value properly
- Added translation for "off" option in English locale

Fixes #8624
The OpenAI API types do not include "off" as a valid reasoning_effort value,
so we need to exclude it similar to how we handle "minimal"
@roomote roomote bot requested review from cte, jr and mrubens as code owners October 12, 2025 08:16
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Oct 12, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 12, 2025
@6rz6
Copy link

6rz6 commented Oct 14, 2025

any updates? i see some checks failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add "OFF" option to the reasoning effort dropdown

3 participants