realcoloride/node_characterai

I'm trying to create an automated character generation.

bazhenberg opened this issue · 0 comments

Hello everyone! I added a function to the 'client.js' file:

async customCreateCharacter() {
let request = await this.requester.request("https://beta.character.ai/chat/character/create/", {
body: Parser.stringify({
title: "",
name: "lelelle14894",
identifier: "id:258fe483-8baf-497c-a5d3-f158b3713082",
categories: [],
visibility: "PUBLIC",
copyable: true,
description: "",
greeting: "My name is lelelle14894",
definition: "",
avatar_rel_path: "",
img_gen_enabled: false,
base_img_prompt: ""
}),
method: "POST",
headers: this.getHeaders()
});

return request;

}

This request is supposed to create a character, but nothing happens when it is called. What could be the issue?