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

Feature Request: Import/Export Characters in multiple formats #27

Closed wind2sing closed 1 year ago

wind2sing commented 1 year ago

When I try to import a character data in TavernAI or Pygmalion JSON format, the following error appears.

image

It would be much easier if we could support the import of characters from other platforms(both JSON and Character Card image files).

You can refer to these two websites:

josephrocca commented 1 year ago

@wind2sing Okay this should work now, please feel free to open an issue if you run into any errors/incompatibilities. I've only tested it on the output of the AI Character Editor that you linked, and a couple of webp/png files. There's a bit of ambiguity in how to translate the different properties (scenario, personality, etc.) into the OpenCharacter's format, but this initial conversion seems to be working well. Let me know if you have any feedback.