Having trouble configuring a character using the API

Original Discord Post by tyke_18 | 2024-09-27 09:39:40

Hi :slightly_smiling_face:

I can create a character and talk to it when I use the Character API (POST https://api.convai.com/character/create). However when I then use the Core Setting API (POST https://api.convai.com/character/update) to update the characters’ LLM that they use I’m getting an error.

I have some log files for information, here is the log file for creating the character and then specifying the LLM in 2 separate API calls. As you can see the response is fine.

Images:

Reply by tyke_18 | 2024-09-27 09:48:23

But when I try to talk to the character I get this error (“Get Response Failed Error retrieving details for character …”)

Images:

Reply by tyke_18 | 2024-09-27 09:49:13

Images:

Reply by tyke_18 | 2024-09-27 09:49:37

The character ID is e1d341b4-7cb4-11ef-bcd1-42010a7be011

Reply by tyke_18 | 2024-09-27 09:52:03

If I create a new character and don’t use the Core Setting API to specify an LLM to use after first creating the character, I can talk to the character no problem. So maybe I am doing something wrong with the Core Setting API but as you can see from the response to the api call I am getting a SUCCESS response, the character is being created and the LLM is what I specify.

Reply by tyke_18 | 2024-09-27 09:53:03

Any help would be much appreciated, the API to create and configure characters’ is really useful can’t wait to add this to my app.

Reply by tyke_18 | 2024-09-27 10:32:50

Ah, I just changed the LLM for the character in the dashboard to GPT 4o and it works :thinking: and it works for the other LLM’s, it seems the API call is not setting the LLM properly even though I am getting a SUCCESS response back and the code look ok, the model I am specifying matches what is in the docs.

Reply by tyke_18 | 2024-09-27 10:34:46

Images:

Reply by k3kalinix | 2024-09-27 10:44:47

<@547328106927620106>

Reply by jeeves901 | 2024-09-28 03:23:19

<@708608540763357234> Please retry now. We found a bug and fixed it.

Replying to jeeves901’s Message

Reply by jeeves901 | 2024-09-28 03:23:19
<@708608540763357234> Please retry now. We found a bug and fixed it.

Reply by tyke_18 | 2024-09-28 04:39:43

Worked perfectly thanks so much :+1:

Reply by tyke_18 | 2024-09-28 05:06:32

Hi <@1023671043287699568> please mark this as solved.

This conversation happened on the Convai Discord Server, so this post will be closed.