You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The /review command ignores the configured model and endpoint settings, defaulting to gpt-5-codex instead of the specified custom model. #5245
The /review command ignores the configured model and endpoint settings, defaulting to gpt-5-codex instead of the specified custom model, despite the main interface correctly showing the configured model.
Expected Behavior
/review should respect the model configuration from config.toml
Should use the configured litellm provider with the custom base URL
Should use the model specified in the active profile
Actual Behavior
Codex main interface correctly shows configured model:
>> Code review started: changes against 'main' <<
stream error: unexpected status 400 Bad Request: {"error":{"message":"{'error': '/chat/completions: Invalid model name passed in model=gpt-5-codex. Call `/v1/models` to view available models for your key.'}","type":"None","param":"None","code":"400"}}; retrying 1/5 in 191ms…
stream error: unexpected status 400 Bad Request: {"error":{"message":"{'error': '/chat/completions: Invalid model name passed in model=gpt-5-codex. Call `/v1/models` to view available models for your key.'}","type":"None","param":"None","code":"400"}}; retrying 2/5 in 376ms…
<< Code review finished >>
Steps to Reproduce
Configure Codex with custom model and LiteLLM provider as shown above
Verify main interface shows correct model configuration
Run /review command on any file
Observe that it attempts to use gpt-5-codex instead of configured model
Additional Context
The main Codex interface correctly displays the configured custom model
Other commands appear to respect the configuration correctly
The issue is specifically with the /review command hardcoding gpt-5-codex
Error occurs at the /chat/completions API endpoint level
Activity
github-actions commentedon Oct 16, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
/reviewdoes not work with oss models #4788Powered by Codex Action
Enelass commentedon Oct 16, 2025
Fixed with
review_modelin config.toml as per #4788