smart-chatbot-ui icon indicating copy to clipboard operation
smart-chatbot-ui copied to clipboard

Reloading the page on browser will show all conversations's temperature set to 0 changed to 1

Open mauga opened this issue 1 year ago • 0 comments

When conversation temperature is 0, tests in utils/app/clean.ts fails and reset to 1. Reloading the page on browser will show all conversations's temperature set to 0 changed to 1.

Into file utils/app/clean.ts at lines : 31 if (!updatedConversation.temperature) and 77 if (!conversation.temperature) these tests fails when temperature is 0, then temperature is set to DEFAULT_TEMPERATURE (1)

I changed these lines to: 31 if (typeof updatedConversation.temperature === 'undefined') and 77 if (typeof conversation.temperature === 'undefined')

Now chatbot behave correctly when you reenter the page.

mauga avatar Aug 20 '23 11:08 mauga