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

Hang when load of lore file fails #64

Closed kickahaota closed 1 year ago

kickahaota commented 1 year ago

I was trying out lore files, and thought I was being clever by saving the file to a local web server rather than messing around with a public host. Of course, I hadn't exposed that server to the Internet, so your server's attempt to load the lore file failed. But rather than displaying an error, OpenCharacters just hung at the "Downloading lore..." screen. It looks like ensureLoreUrlsAreLoaded isn't catching the exception.

image

josephrocca commented 1 year ago

Thanks! Should at least show an alert/error popup now