Repository navigation
feat(ai): AI model handling with reasoning support - #8539
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. 💤 Files selected but had no reviewable changes (1)
⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis PR fixes stream error propagation in the AI chat handler and adds reasoning-model awareness to the AI providers module, conditionally omitting the ChangesAI Chat and Reasoning Model Support
Estimated code review effort: 2 (Simple) | ~12 minutes Sequence Diagram(s)sequenceDiagram
participant Renderer
participant ChatHandler as chat.js
participant FullStream as result.fullStream
participant Catch as catch block
Renderer->>ChatHandler: renderer:ai-stream-text
ChatHandler->>FullStream: iterate stream parts
FullStream-->>ChatHandler: part { type: 'error' }
ChatHandler->>ChatHandler: streamError = part.error
ChatHandler->>ChatHandler: throw streamError (after loop)
ChatHandler->>Catch: error handled
Catch-->>Renderer: error response
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Description
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit
Bug Fixes
New Features