mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use new export endpoint
This commit is contained in:
@ -226,10 +226,8 @@ async function downloadChubCharacter(id) {
|
|||||||
* @returns {Promise<{buffer: Buffer, fileName: string, fileType: string}>}
|
* @returns {Promise<{buffer: Buffer, fileName: string, fileType: string}>}
|
||||||
*/
|
*/
|
||||||
async function downloadPygmalionCharacter(id) {
|
async function downloadPygmalionCharacter(id) {
|
||||||
const result = await fetch('https://server.pygmalion.chat/galatea.v1.PublicCharacterService/CharacterExport', {
|
const result = await fetch(`https://server.pygmalion.chat/api/export/character/${id}/v2`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify({ 'character_id': id }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!result.ok) {
|
if (!result.ok) {
|
||||||
|
Reference in New Issue
Block a user