Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Nov 13, 2025

Reason

  • When include: ["reasoning.encrypted_content"] is sent for models without reasoning, OpenAI Responses API returns: Invalid request to Responses API. Please check your input parameters. - Encrypted content is not supported with this model.
  • Also, gpt-5-chat-latest only supports medium verbosity; setting low/high triggers: Invalid request to Responses API. Please check your input parameters. - Unsupported value: 'low' is not supported with the 'gpt-5-chat-latest' model. Supported values are: 'medium'.

Changes

Fixes #9225


Important

Gate encrypted_content inclusion to when reasoningEffort is set and remove verbosity support for gpt-5-chat-latest.

  • Behavior:
    • Gate encrypted_content inclusion to when reasoningEffort is set in OpenAiNativeHandler.buildRequestBody() and OpenAiNativeHandler.completePrompt().
    • Remove supportsVerbosity from gpt-5-chat-latest in openai.ts.
  • Verification:
    • Unit tests in openai-native.spec.ts pass.
    • Full test suite passes.

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

…gEffort is set; prevent Responses API error on non-reasoning models. types: remove supportsVerbosity from gpt-5-chat-latest to avoid invalid verbosity error. Fixes #9225
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Nov 13, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 13, 2025

Rooviewer Clock   See task on Roo Cloud

Review completed. No issues found.

The changes correctly address the reported bug by:

  • Gating encrypted_content inclusion to only when reasoningEffort is set, preventing errors for non-reasoning models
  • Removing supportsVerbosity from gpt-5-chat-latest to avoid invalid verbosity errors

Both changes are minimal, focused, and properly implemented across streaming and non-streaming code paths.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 13, 2025
@mrubens mrubens merged commit 7730c6f into main Nov 13, 2025
21 checks passed
@mrubens mrubens deleted the fix/gate-openai-native-encrypted-include branch November 13, 2025 14:29
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Nov 13, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 13, 2025
mini2s added a commit to zgsm-ai/costrict that referenced this pull request Nov 17, 2025
* refactor(tools): move imageHelpers to tools directory and update imports

* Improve checkpoint menu translations for PR RooCodeInc#7841 (RooCodeInc#8796)

Co-authored-by: Bruno Bergher <[email protected]>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: NaccOll <[email protected]>

* Handle Roo provider pricing correctly (RooCodeInc#8802)

* fix: preserve trailing newlines in stripLineNumbers for apply_diff (RooCodeInc#8227)

Co-authored-by: Roo Code <[email protected]>
Co-authored-by: Matt Rubens <[email protected]>

* Fix checkpoints test (RooCodeInc#8803)

* Chore: Update magistral-medium-latest in mistral.ts (RooCodeInc#8364)

Co-authored-by: daniel-lxs <[email protected]>

* fix: respect nested .gitignore files in search_files (RooCodeInc#8804)

* fix(export): exclude max tokens field for models that don't support it (RooCodeInc#8464)

* chore: add changeset for v3.29.0 (RooCodeInc#8806)

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* Changeset version bump (RooCodeInc#8807)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Rubens <[email protected]>

* fix: adjust GLM-4.6-turbo max output tokens to prevent context limit errors (RooCodeInc#8822)

Co-authored-by: Roo Code <[email protected]>

* fix: change Add to Context keybinding to avoid Redo conflict (RooCodeInc#8653)

Co-authored-by: Roo Code <[email protected]>

* feat: add Google Ads conversion tracking to reviewer page (RooCodeInc#8831)

* feat: add Google Ads conversion tracking to reviewer page

* fix: add asChild prop to first button to prevent invalid HTML nesting

---------

Co-authored-by: Roo Code <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>

* Fix provider model loading race conditions (RooCodeInc#8836)

* Release v3.29.1 (RooCodeInc#8854)

chore: add changeset for v3.29.1

* Changeset version bump (RooCodeInc#8855)

* changeset version bump

* Update CHANGELOG for version 3.29.1 release

Updated version number and added release notes for 3.29.1.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt R