-
Notifications
You must be signed in to change notification settings - Fork 318
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
<AIConversation> React component only renders the the last word of the response. #6334
Comments
Hello, @alexhddev 👋 and sorry you're running into this. We're working on reproducing the issue on our side and will follow up as soon as we have more questions or context on this. Thanks for opening the issue. |
The problem doesn't appear if I instantiate the ai clients in a separate Client.ts file:
|
Problem solved: // Chat.tsx
|
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Other
How is your app built?
Vite
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
eu-west-1
Please describe your bug.
I'm following the basic Amplify AI tutorial from aws:
https://aws.amazon.com/blogs/mobile/create-a-customized-ai-based-chat-interface-with-your-application-data/
I can't make the dialog to work inside a Vite react app.
No matter what I try, the AIConversation Component will only render the last entry in the bot response, as seen in the attached screenshot.
Tried with all Claude models, the behavior is the same.
Kindly please assist.
What's the expected behaviour?
See the full AI response.
Help us reproduce the bug!
Please observe the code snippet and screenshot
Code Snippet
Console log output
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: