Bot gives same response multiple times when deployed with azure bot service #6635
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Version
v4
Describe the bug
Same responses from bot are coming multiple times when deployed with azure bot service
To Reproduce
Clone the echo bot
Test it on emulator
Deploy it on azure with azure bot service
Expected behavior
Response should only come once.
Additional context
I created a simple bot
which can send messages based on a certain input like if you send hi it will send hello.
Some messages like hi and hello are send from the bot itself via a if else statement
Now some text with prefix question like "question: what is the number system"
When bot gets these type of text it send a request to OpenAI APIs for an LLM reponse
Now both these kinds of response one which is normal from the bot and one which comes from openai to bot and then to user as response are coming multiple times.
I though i might have done something in async operations wrong but it also gives two response for both types of messages
Below is some code from app.py
Below is my Bot code
The text was updated successfully, but these errors were encountered: