Skip to content

Commit

Permalink
refactor: replace ChatInput with antdx component (#2972)
Browse files Browse the repository at this point in the history
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
  • Loading branch information
agatha197 authored and ironAiken2 committed Jan 13, 2025
1 parent 0de11e4 commit 50ac334
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 50ac334

Please sign in to comment.