epam / ai-dial-chat

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

LIke/Dislike buttons #2170

Open SOVALINUX opened 2 months ago

SOVALINUX commented 2 months ago

EPAM AI DIAL chat version

0.15.2

How to reproduce

Hi, I'm experiencing the issue with "likes" feature so like/dislike buttons are not always shown when expected from my side. And there is some tendency in appearance:

  1. If my chat application responding with a single stream of text chunks, then it works as expected
  2. For cases when my chat responds with several stages, attachments and text chunks I never seen the like/dislike buttons shown.

Note: I've done the custom TypeScript lambda, so maybe I have a misconfiguration in some response fields like object, finish_reason, etc.

Actual result

Complex messages are shown w/o like buttons

Expected result

My expectatation that like/dislike buttons are shown for all assistant messages if enabled.

Confidential information

SOVALINUX commented 1 month ago

Looks like I've resolved it via adding unique "id" to every stream chunk including stages, attachments, etc.