Closed thucpn closed 1 week ago
Latest commit: 51ee45adbbd854562d3c8256474cca1511d50d00
The changes in this PR will be included in the next version bump.
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
The pull request introduces a new patch titled "create-llama" that updates the chat user interface (UI) components. Key changes include replacing the DocumentPreview
component with DocumentInfo
in the chat input, modifying how message keys are assigned in chat messages, updating type handling in the chat tools component, and enhancing the ChatMessageContent
component with new loading and message appending functionalities. These updates aim to improve the overall chat interface while maintaining the core logic.
File Path | Change Summary |
---|---|
.changeset/wet-pears-matter.md |
New patch added: "create-llama" |
templates/types/streaming/nextjs/app/components/ui/chat/chat-input.tsx |
Replaced DocumentPreview with DocumentInfo , updated prop structure for DocumentInfo , added className prop for styling. |
templates/types/streaming/nextjs/app/components/ui/chat/chat-messages.tsx |
Changed key prop assignment from message.id to index in messages.map . |
templates/types/streaming/nextjs/app/components/ui/chat/tools/chat-tools.tsx |
Introduced getArtifactVersion function, updated ChatTools to use artifactVersion , modified ToolAnnotations to pass the new version. |
templates/types/streaming/nextjs/app/components/ui/chat/chat-message-content.tsx |
Added useChatUI hook, destructured isLoading and append , and updated return statement to include these props in ChatMessage.Content . |
templates/types/streaming/nextjs/package.json |
Updated dependency version of @llamaindex/chat-ui from 0.0.5 to 0.0.7 . |
templates/types/streaming/nextjs/app/layout.tsx |
Removed import statement for ./markdown.css . |
templates/types/streaming/nextjs/app/markdown.css |
Deleted file containing styles for rendering chat message markdown. |
DocumentInfo
component for handling relative URLs, related to chat UI updates.🐰 In the meadow where chats do bloom,
A llama's grace dispels the gloom.
With tools and messages, all in line,
Our chat's a garden, oh so fine!
DocumentInfo takes the stage,
As we hop along, page by page! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
TODO: use latest chat-ui
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
@llamaindex/chat-ui
to the latest version for enhanced functionality.