cheshire-cat-ai / admin-vue

Admin panel of the Cheshire Cat AI
GNU General Public License v3.0
32 stars 29 forks source link

Shorten long messages in chat #20

Closed pieroit closed 1 year ago

pieroit commented 1 year ago

Is your feature request related to a problem? Please describe. When an user copy/pasters a long text in the chat, the backend gives an error (will be fixed) and in any case the message bubble would become huge.

Describe the solution you'd like Backend should be able to deal with long texts, and the admin just make the message box small so it does not occupy visual space

zAlweNy26 commented 1 year ago

Which should be the characters limit before showing the "Read More" button?

pieroit commented 1 year ago

I propose 5000 chars, which should be around 2000 tokens, which is half the context length for chatGPT

zAlweNy26 commented 1 year ago

The same thing should happen for the cat response or just for the user?

pieroit commented 1 year ago

The same thing should happen for the cat response or just for the user?

Ok if it is not complex, otherwise the user side should be enough