-
Notifications
You must be signed in to change notification settings - Fork 850
feat: timing, chunks and tokens display #2946
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: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 2c6cf46 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 16 files
|
📝 Documentation updates detected! New suggestion: Document message timing metrics for performance monitoring (PR #2946) |
This PR adds timing, chunks and tokens support for
assistant-streamand@assistant-ui/react-ai-sdk, an timing example with Grok.Preview:
Important
Adds timing support to
assistant-streamand@assistant-ui/react-ai-sdk, including tracking and displaying message processing metrics.assistant-streamand@assistant-ui/react-ai-sdk.timeToFirstChunk,timeToFirstToken,totalStreamTime,tokensPerSecond, andtotalChunksinGrok.tsx.TimingTrackerclass inassistant-message-accumulator.tsto track timing metrics.AssistantStreamChunktype to includetimingtype.AssistantMessageAccumulatorto handletimingchunks and update message metadata.MessageTimingDisplaycomponent inGrok.tsxto show timing information.Grokexample inexample-showcase.tsx.useStreamingTiminghook inuseStreamingTiming.tsto manage timing state.convertMessage.tsto handle timing metadata in message conversion.types.tsandAssistantTypes.tsto includeMessageTiming.This description was created by
for 765d2ca. You can customize this summary. It will automatically update as commits are pushed.