feat: sync gpt-5 model ratio and support new reasoning effort - #1525
Conversation
WalkthroughA helper function was introduced to centralize the parsing of reasoning effort suffixes from model names in the OpenAI adaptor, replacing repetitive logic in two conversion methods. Additionally, a new conditional branch was added to handle "gpt-5" model prefixes in the model ratio setting, assigning them a fixed ratio value. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Adaptor
participant Helper
Client->>Adaptor: ConvertOpenAIRequest(modelName)
Adaptor->>Helper: parseReasoningEffortFromModelSuffix(modelName)
Helper-->>Adaptor: (reasoningEffort, trimmedModelName)
Adaptor-->>Client: ConvertedRequest with ReasoningEffort and updated model name
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-06-21T03:37:41.726ZApplied to files:
📚 Learning: 2025-08-05T17:14:17.246ZApplied to files:
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
请问可以支持gpt-oss模型嘛 |
feat: sync gpt-5 model ratio and support new reasoning effort
支持 GPT-5 模型补全倍率: 8
新增 minimal reasoning effort (仅 gpt5 系列可用)
官方文档:
Summary by CodeRabbit