epam / ai-dial-chat

A default UI for AI DIAL
https://chat.lab.epam.com
Apache License 2.0
57 stars 24 forks source link

[Regression]: New message can be sent when response generation was stoped after part of response was provided for Application, Assistant or Model with addon #1834

Closed YauheniyaH closed 2 weeks ago

YauheniyaH commented 1 month ago

EPAM AI DIAL chat version

0.15.0

How to reproduce

Steps:

  1. create chat with Application (or Assistant, or Model with addon)
  2. input message which suppose to generate long answer (for example "Provide 50 adjectives about weather)
  3. stop generating after part of response was provided
  4. type message into text box and click Send button

Actual result

Send button is enabled, next message can be posted

Expected result

In case User stoped generation or Error from DIAL the following behaviour should be

  1. when no response produced Model/ Model with Addon/ Application/ Assistant -> Send button is disabled

  2. when part of response provided Model -> Send button is enabled Model with addon/Application/Assistant -> Send button is disabled (this part need to fix)

Confidential information

VolhaBazhkova commented 4 weeks ago

The flag "allowResume" was introduced. It's set in config for specific applications.

VolhaBazhkova commented 2 weeks ago

The flag "allowResume" was introduced. By default it is set to true. For assistant and model + addon, "allowResume" is always set to false. In case of empty or partly response an error appears, user has to regenerate the response. For application, model without addon, by default "allowResume" = true. In case of empty or partly response it's allowed to send the next user-message, regenerate action is not required. In config we set "allowResume" = false for DIAL RAG and WEB RAG applications, it means that regenerate action is required when response is stopped. Example: image image

Reported UI defect #1963