fix: enable temperature support for gpt-5-codex model #8409
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.
Description
This PR fixes an issue where the gpt-5-codex model was unable to properly use RooCode tools (read files, edit them, etc.).
Problem
The gpt-5-codex model was configured with
supportsTemperature: false, which prevented it from properly handling tool usage requests. Users reported that the model either claimed the user refused tool usage (despite auto-approve being on) or didn't use tools at all.Solution
Removed the
supportsTemperature: falseproperty from the gpt-5-codex model configuration inpackages/types/src/providers/openai.ts. This allows gpt-5-codex to behave consistently with other GPT-5 models and properly handle temperature parameters in API requests.Testing
supportsTemperature: trueor omit the property entirely (defaulting to true)Related Issues
Fixes #8407
Type of Change
Checklist
Important
Removed
supportsTemperature: falsefromgpt-5-codexinopenai.tsto enable temperature support and fix tool usage issues.supportsTemperature: falsefromgpt-5-codexinopenai.ts, enabling temperature support.gpt-5-codexcould not use RooCode tools due to temperature handling.This description was created by
for 7b913ed. You can customize this summary. It will automatically update as commits are pushed.