Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mauga opened this issue Aug 20, 2023 · 0 comments

Comments

@mauga
Copy link

mauga commented Aug 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant