feat:Add ChatReasoningSettings and reasoning to chat types in openapi.yaml#231
feat:Add ChatReasoningSettings and reasoning to chat types in openapi.yaml#231
Conversation
WalkthroughAdds a new ChatReasoningSettings schema and introduces an optional reasoning field to OpenAIChatCompletionsIn and ChatCompletionUserMessage in src/libs/DeepInfra/openapi.yaml. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Client
participant API as DeepInfra API
participant Model as Chat Model
Dev->>API: POST /chat/completions { messages[], reasoning{enabled, effort} }
API->>API: Validate schema (reasoning optional)
alt reasoning.enabled == true
API->>Model: Invoke with reasoning settings (effort)
else reasoning.enabled == false or absent
API->>Model: Invoke without reasoning
end
Model-->>API: Completion response
API-->>Dev: 200 OK { choices[], usage... }
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (12)
📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
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 |
Summary by CodeRabbit