Open ejgutierrez74 opened 6 months ago
Little improvement or clues. I tried to run in production ( npm run build and npm run preview) and seems that at least the duplicated messages dissapeared. But the rest of the problems continue
Just to add more info: react v18.2 and vite 5.2
Describe the bug The steps array is not shown properly as should be...
To Reproduce This is my steps object:
Result: In screenshots 1- Some messages are duplicated 2 - AvatarBot is not showing 3 - once as a user writes the first prompt or question, the user input appears disabled, and you cant continue the chat
Expected behavior That the steps array would be shown propely in chatbot.
Screenshots
.
Desktop (please complete the following information):
Additional context React with vite
So my main objective is create a chatbot to use with AI using API ( gemini or chatgpt). So i would replace the message "Respuesta del bot" with the response of the model of AI after sending him the message with the question, and if possible with the history of the chat conversation. Then left the bot ready to receive a new userinput ( now dont know why after sending the first message, the userinput is disabled)
My code:
Any help would be apreciated
My project: https://github.com/ejgutierrez74/workshop-react-eduardo
As you can see this is an educational project and i need this to teach my students of JavaScript and front end web apps.