fix(relay): codex rm Temperature - #4798
Conversation
WalkthroughThe PR modifies Codex request conversion to conditionally suppress decoding parameters based on upstream model name: Temperature is cleared for models starting with ChangesCodex model-specific parameter suppression
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
relay/channel/codex/adaptor.go (1)
111-111: 💤 Low valueConsider using English for code comments.
The comment is in Chinese. For better maintainability and international collaboration, consider translating to English:
// gpt-5 series models: clear parameters that are no longer supported🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@relay/channel/codex/adaptor.go` at line 111, Replace the Chinese inline comment "// gpt-5系列模型适配 归零不再支持的参数" in adaptor.go with an English equivalent to improve readability for international collaborators; for example use "// gpt-5 series models: clear parameters that are no longer supported" and ensure the wording appears next to the same code block handling GPT-5 parameter compatibility.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@relay/channel/codex/adaptor.go`:
- Line 111: Replace the Chinese inline comment "// gpt-5系列模型适配 归零不再支持的参数" in
adaptor.go with an English equivalent to improve readability for international
collaborators; for example use "// gpt-5 series models: clear parameters that
are no longer supported" and ensure the wording appears next to the same code
block handling GPT-5 parameter compatibility.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c8df3b38-10c0-411e-b943-25e3a60b142d
📒 Files selected for processing (1)
relay/channel/codex/adaptor.go
Important
📝 变更描述 / Description
修复codex后端不支持top_p导致的报错:
Unsupported parameter: top_p🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit