-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(core): support render stream objects in front-end components #12842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/ai-stream-objects
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the """ WalkthroughThis change introduces comprehensive support for streaming structured objects ("stream objects") in AI chat sessions. It spans backend schema, provider, and controller updates, GraphQL schema and queries, frontend message handling, rendering, and utilities. The implementation includes new streaming endpoints, parsing/merging logic, and test coverage for stream objects throughout the stack. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant Backend
participant Provider
User->>Frontend: Sends chat message
Frontend->>Backend: POST /chatStreamObject (SSE)
Backend->>Provider: provider.streamObject(...)
loop Streaming
Provider-->>Backend: yield StreamObject
Backend-->>Frontend: SSE event with StreamObject[]
Frontend->>Frontend: Parse/Merge StreamObject(s)
end
Frontend->>User: Render message with streamObjects
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Suggested reviewers
Poem
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/ai-stream-objects #12842 +/- ##
==========================================================
- Coverage 55.93% 55.62% -0.32%
==========================================================
Files 2658 2658
Lines 125982 126408 +426
Branches 20031 19986 -45
==========================================================
- Hits 70474 70320 -154
- Misses 53172 53748 +576
- Partials 2336 2340 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
46adb53
to
8ca5f1b
Compare
37f9b85
to
3e1de13
Compare
8ca5f1b
to
776ca0a
Compare
3e1de13
to
28bfa95
Compare
776ca0a
to
bda09c6
Compare
28bfa95
to
1bc9e60
Compare
bda09c6
to
9a633b9
Compare
1bc9e60
to
ccb026b
Compare
Close AI-194
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests
Chores