OpenAI API responding twice to single prompt - help!

Hi All,

First post so please be gentle. :slight_smile:

I have setup a simple call to the OpenAI API. When I send a prompt, I receive the first response back fine. But approx 6 seconds later, I receive ANOTHER response back (albeit, slightly different) for the same prompt.

Any ideas what may be happening?

Thanks!

1 Like

Thanks for the quick response, will triple check everything again. :+1

Hi Faiz, did you get a response for this? I’m having the same issue

Could you post your code? Need some context as it’s probably an error in the programming.

2 Likes

I’m also getting the same issue - did anyone get a response for this?

I didn’t get a response in the end. I rebuilt it from scratch and it then worked fine. So the only conclusion I can make is that somehow, the logic in my code was triggering the request twice.

Good luck and sorry I can’t be of more help!

I’m getting the exact same behavior with the Assistants API. I’m doing some super rudimentary function calling where I need it to respond with a single word that I can detect, which it does great. Then, it sends another message right after it which messes up the whole flow of the logic.

This only started a couple days ago, without any changes on my end. It could still be an error on my part, but it’s weird that it just started happening recently.