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

[Overlay] modelID should be also stored in recentModelsIds #2636

Open VolhaBazhkova opened 3 days ago

VolhaBazhkova commented 3 days ago

EPAM AI DIAL chat version

0.20.0

What happened?

The ticket was reproduced locally and in sub-project. Here are the steps to reproduce locally: Prerequisites (typically configured by default):

  1. Recent models configured by default: recentModelsIds:"["gpt-35-turbo","gpt-4","epam10k-semantic-search","gpt-world","mirror"]"
  2. ModelID set and is used in Overlay only: modelId: 'gpt-4'

Steps:

  1. Open DIAl and create new conversation based on "epam10k-semantic-search" (just send 'test' and no need to wait till the response, click on stop generating)
  2. Create new conversation -> GPT-4 is pre-selected (ok), but is shown in Talk to on the third place -> bug

Note: you may just clean local store and after refresh pt-4 model is pre-selected and is shown on the second place -> bug.

Expected: GPT-4 should be placed into recent models list and shown at the top of Talk to on the first place Note: If gpt-4 is not included into recent list initially, when user create new conversation the model is shown on the first place and as preselected (ok), but the model disappears from the list if user clicks on any other model in Talk to (easy to reproduce in sub-project; or change manually the list of recent models)

image

Confidential information