malfoyslastname / character-card-spec-v2 Goto Github PK
View Code? Open in Web Editor NEWAn updated specification for AI character cards.
An updated specification for AI character cards.
If you are a regular user or developer with questions about this spec, feel free to post them in this thread.
I can also be contacted at [email protected] if you don't have a GitHub account, but questions in this thread are more likely to get noticed.
Following a conversation on Discord with @malfoyslastname, here is a list of fields suggestions, their format, and why.
It is possible to add new fields or compatible values in the future without creating a completely different spec. If the spec includes a version number, future versions of the spec can be easily detected and supported, and if an importing software does not support the provided version, it can gracefully inform the user that some fields may not be imported, instead of just silently dropping them.
2.0
, 2.1
{
"spec": "chara_card_v2",
"version": "2.1"
}
Cards are written in a certain language, and I hope people will feel comfortable creating characters in their own language.
It can also be used for:
Strings following RFC 5646 such as en
or en-GB
.
{
"data": {
"culture": "en-us"
}
}
We need a simple way to find imported characters and to make them discoverable.
A list of strings, all lowercase, numbers and underscores only.
A set of tags would be considered standard, but that list will grow independently of the spec itself:
nsfw
: Adult contentfemale
, male
(if gender is not accepted){
"data": {
"tags": [
"nsfw",
"adventure",
"custom_tag_123"
]
}
}
Who made that character, good motivation for character builders and easier to find more by the same author in the future.
A username, and potentially a URL to get more or contribute (e.g. patreon)
{
"data": {
"author": {
"name": "johndoe",
"url": "https://..."
}
}
}
If a character was updated (typos fixed, more details added, more lore created, etc) we need to know which is which.
A single sequential number, OR semver.
{
"data": {
"version": "1.0"
}
}
Where the character was uploaded to first, so if you get a character from someone, it's possible to track it down. That field could be auto-populated by boorus, or by the author, but it's completely optional. I expect people will use it to point to their Discord server, Patreon, Twitter, etc.
A valid https url.
{
"data": {
"origin": "https://twitter.com/whatever"
}
}
We need a way to add useful fields such as gender, age, and eventually custom fields such as visual novel software requiring animation data for example.
The difference between extensions and root fields like personality is that this is NOT meant to be sent as a prompt, but rather for supporting the software using the card.
This can also be useful to avoid custom export formats, e.g. "exported by software version", etc.
NOTE: Any field that is suggested in extensions that is NOT software-specific could eventually (or already) be migrated to a root field in future versions of the spec. For example, culture, gender, age, voice, llm, etc. The objective is for anyone who needs additional data to have a way to do so.
Keys must be strings, values are any (object, string, number, boolean)
{
"data": {
"extensions": {
"text_color": "#ff3333",
"agnai/voice": { "service": "elevenlabs", "id": "Bella" }
}
}
}
Hi there,
It would be beneficial to have a standard set of test cards / JSONs so that we could easily verify if the code implements the spec correctly. Also, a way to validate the output V2 card to see if it was formatted correctly.
Use this thread for general discussion and debate regarding the Character Card Spec V2. Anyone may freely use this thread to discuss the spec. However, if you are an owner or representative for a project in the ecosystem (frontend, card editor, card repository...) please identify yourself in your first post, as we hope to achieve a consensus before validating the spec.
I may also be contacted by email at [email protected] or through your own dev discussion channels (email me a link if I'm not already there).
If your project has been omitted, please get in contact.
Note: The main Tavern branch and their character repository Characloud have already drifted from this ecosystem, so although we aim to remain compatible with their ecosystem, consensus between V1-compatible projects is the main priority.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.