Placeholder for Pygmalion character source

This commit is contained in:
Cohee 2024-03-09 21:06:31 +02:00
parent 91d6a139e5
commit 26c0886856

View File

@ -1390,12 +1390,18 @@ function getCharacterSource(chId = this_chid) {
return '';
}
const chubId = characters[this_chid]?.data?.extensions?.chub?.full_path;
const chubId = characters[chId]?.data?.extensions?.chub?.full_path;
if (chubId) {
return `https://chub.ai/characters/${chubId}`;
}
const pygmalionId = characters[chId]?.data?.extensions?.pygmalion_id;
if (pygmalionId) {
return `https://pygmalion.chat/${pygmalionId}`;
}
return '';
}