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

AI instructions are omitted when generating variant responses #42

Closed kickahaota closed 1 year ago

kickahaota commented 1 year ago

Currently, if you use /ai instruction to give the AI an instruction -- either on its own, or at the end of a normal user response -- the instruction is correctly reflected in the AI response. But if you then use the blue button to generate a variant of the response, the AI instruction is apparently not included in the new API call, and so is not reflected in the variant response.

(Thank you for this great project!)

kickahaota commented 1 year ago

I notice that the AI instruction for each message is now stored in the conversation history, and that variant responses now appear to reflect the AI instruction. Great stuff! I'll open another issue with a potential enhancement, but I'll close this one as fixed.

josephrocca commented 1 year ago

Ah, sorry - forgot to update this issue, thanks for the suggestion!