Duplication in OpenAi Assistant Answer

I create a chatbot using openai assistant api using Next js.
But whenever i refresh the app i got new response from openai assistant api. Have a look below

is there any reason why this behave occurs?

Without seeing your code this is pure speculation, but it seems like you’re just calling the API when the page reloads. Maybe try it with a more in-depth prompt to see if it’s receiving the send message each time.

1 Like

Second this.

The issue is with your code not with the API or the model.

1 Like