Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
7.13k stars 935 forks source link

Remove the "switch-hide-cot" from the Settings UI #624

Closed scoronado closed 10 months ago

scoronado commented 10 months ago

Is there a way to remove the "switch-hide-cot" from the Settings UI, from the settings options top-right PersonIcon?

Screenshot 2024-01-02 at 13 59 05
SalamanderXing commented 10 months ago

You probably can do that using custom CSS

willydouhard commented 10 months ago

Curious about the use case? Is this because you do not want the user to see the Chain of Thought at all? In this week's release, if hide_cot is set to true in the config, the intermediate steps will never be sent to the UI.

scoronado commented 10 months ago

Yes @willydouhard, this is the case. To have a clean UI for end users.

willydouhard commented 10 months ago

Okay so the release should fix that (the toggle will still show but will not change anything if the original value is set to true on the server)

scoronado commented 10 months ago

Furthermore, the 'prompt_playground = false' setting in config.toml does not function as intended; you can still access the prompt playground and use it openly

willydouhard commented 10 months ago

I doubled checked and everything should work correctly with tomorrow's release!

scoronado commented 10 months ago

Everything looks good, thx @willydouhard