dotneet / smart-chatbot-ui

An open source ChatGPT UI.

Home Page:https://smart-chatbot-ui.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mauga opened this issue · comments

commented

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.