From 9dcbc278557ad787edfd336bd9397998843fba3c Mon Sep 17 00:00:00 2001 From: agatha197 <28584164+agatha197@users.noreply.github.com> Date: Thu, 2 Jan 2025 04:43:45 +0000 Subject: [PATCH] refactor: replace ChatInput with antdx component (#2972) resolves https://github.com/lablup/backend.ai-webui/issues/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