Chainlit / chainlit

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

User message in chat has hardcoded 'You'. Cannot be translated or changed. #722

Closed mskarabot closed 3 weeks ago

mskarabot commented 8 months ago

If you check this piece of code you will see that "You" is hardcoded in case if a message is user messaage: https://github.com/Chainlit/chainlit/blob/4c08c24c807ac5e075646845827c9826bbed888a/libs/react-components/src/messages/components/Author.tsx#L28

This causes that it cannot be translated and or renamed.

willydouhard commented 8 months ago

We could add this in the translation files. A workaround is to set an avatar for You.

andrePankraz commented 7 months ago

Could you explain this workaround? If i set an Avatar for You, I'm still "You" and not "Du" or "Max". I can give "You" an image via await cl.Avatar(name="You", url=image).send() , but can i rename "You" (the logged in user)?

ajosegun commented 4 months ago

It would be interesting to be able to change the Name and Image for the logged in user avatar.

ModEnter commented 3 weeks ago

Hello, it is not on the roadmap right now, but you can easily change it on your side or propose a pull request, all contributions are welcome