microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.55k stars 2.4k forks source link

There is a frontend bug in the stopping response generation scenario #729

Open mmdmirh opened 5 months ago

mmdmirh commented 5 months ago

Describe the bug There is a frontend bug in the stopping response generation scenario. Meaning that, stopping answer generation would be resulted in this bug. This occurs in the following two scenarios:

To Reproduce

  1. send a prompt
  2. the app is in waiting for answer generation
  3. the stop button is activated
  4. click on stop button to stop getting answer
  5. history/update returns 500
  6. the error Error "An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator." is displayed in the answer section
  7. send another prompt
  8. the prompt is not visible (the screenshot is attached)
  1. send the first prompt of the conversation
  2. the app is in waiting for answer generation
  3. the stop button is activated
  4. click on stop button to stop getting answer
  5. send another prompt
  6. the prompt is changed to the second one.

Expected behavior Choosing stop generation button should not resulted in error display and the next prompt should displayed in order.

Screenshots For scenario one the screenshot is as:

Screenshot 1403-01-09 at 1 02 35 at night

Screen Record For second Scenario:

Configuration: Please provide the following

Additional context There is also another bug in attached video that i think the rootcauses are as the same so I did not mention it.

mmdmirh commented 5 months ago

it seems that the screen record is too big to be updated here.

jasredyy5 commented 1 month ago

Hi everyone, is there any update on this issue? Thank you!