josephrocca / OpenCharacters

Simple little web interface for creating characters and chatting with them. It's basically a single HTML file - no server. Share characters using a link (character data is stored within the URL itself). All chat data is stored in your browser using IndexedDB. Currently supports OpenAI APIs and ~any Hugging Face model.
https://josephrocca.github.io/OpenCharacters
MIT License
364 stars 60 forks source link

A bug about invalid characters replace in name #59

Open deedlitelf opened 1 year ago

deedlitelf commented 1 year ago

When the user's name were set without any numbers and letters, the replace invalid characters function will change the name to null and cause an api reply error. So I am wondering whether it is necessary to automatically set a fixed name like "user" when a name is set to null due to iinvalid characters.

josephrocca commented 1 year ago

Hi I'm not able to reproduce this for some reason. If you can outline the exact steps you took to reproduce then I can try again