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
376 stars 65 forks source link

Improvement of character import #28

Closed wind2sing closed 1 year ago

wind2sing commented 1 year ago

First of all, thank you for this awesome project and the constant iterations of updates.

I found that when I imported the TavernAI format, the personality section was missing information. In the TavernAI format, it is in the form of a description.

I found the following code which can be used as a reference to differentiate between the various char formats. Constructor https://github.com/ZoltanAI/character-editor/blob/main/index.html#L1321 Exporter https://github.com/ZoltanAI/character-editor/blob/main/index.html#L1745

For example, from the section in the image below, we can see an example of how it is imported as the TavernAI format.

image

Export to (Pygmalion / Text Generation JSON)

image
josephrocca commented 1 year ago

Ah thanks! Should be fixed now. Please ping me if not. Also let me know if you think the conversion should be formatted differently - e.g. putting things in role instruction vs reminder vs initial messages. It's not really a 1:1 conversion from the other formats, so we might need to do some tweaking.