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

Trouble summarizing text #38

Closed Samxx97 closed 1 year ago

Samxx97 commented 1 year ago

I noticed that the web app seems to take longer and longer to summarize with every new prompt that i make,i figure this is normal but then at the last prompt it gives me this error message which i included in the image, OpenCharacters-bug

josephrocca commented 1 year ago

Are you able to export this thread (the save/floppy-disk icon next to thread card/name) and share it with me? Either here or on discord (username: rocca#4242). If so that would be super helpful for debugging this!

Samxx97 commented 1 year ago

Definitely here you go here is the link to the file export of the thread

https://drive.google.com/file/d/1GtL7uAWa0ghpaM3Vnx8cs3f8V-NiLEbD/view?usp=share_link

josephrocca commented 1 year ago

Thanks!! This should be fixed now - the previous summarization prompt was sometimes not compressing the text at all. I've now added a thing where if it fails to compress twice in a row, the prompt becomes much more explicit in its instruction to reduce the size of the text (this isn't enabled for the first two attempts because otherwise the model often compresses the text way too much). Please ping me if it's still not working for you (make sure to refresh page before testing)

Samxx97 commented 1 year ago

It worked now thanks 👍