Skip to content

fix(import): support avatar extraction for different JSON formats#38

Open
GentleBurr wants to merge 1 commit intoLettuceAI:mainfrom
GentleBurr:main
Open

fix(import): support avatar extraction for different JSON formats#38
GentleBurr wants to merge 1 commit intoLettuceAI:mainfrom
GentleBurr:main

Conversation

@GentleBurr
Copy link
Copy Markdown
Contributor

Previously, the legacy importer strictly looked for the avatarPath key when parsing JSON files for characters and personas. This caused avatar imports to fail for character cards generated by Pygmalion and other V2/Characterbook specifications.

This commit introduces fallback checks for the avatar field. The parser will now sequentially check avatarPath, avatar, image, and avatar_url to ensure cross-platform compatibility when importing custom character data.

Previously, the legacy importer strictly looked for the `avatarPath` key when parsing JSON files for characters and personas. This caused avatar imports to fail for character cards generated by Pygmalion and other V2/Characterbook specifications.

This commit introduces fallback checks for the avatar field. The parser will now sequentially check `avatarPath`, `avatar`, `image`, and `avatar_url` to ensure cross-platform compatibility when importing custom character data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant