Discussions
Question about upgrading Interactive Avatar API from v2 to v3+
6 months ago by Shungo Hiroshima
I have an application using the Interactive Avatar API that was previously working with version: "v2". I tried updating the version to v3+ by changing only the version parameter in the code. However, this caused errors to appear.
Could you please advise if other parts of the code also need to be updated when upgrading from v2 to v3+? I can provide the relevant code snippet if needed.
async function createNewSession() {
const response = await fetch(
`${API_CONFIG.serverUrl}/v1/streaming.new`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${sessionToken}`,
},
body: JSON.stringify({
quality: "high",
avatar_id: "Dexter_Lawyer_Sitting_public",
// knowledge_base: "",
language: "ja",
version: "v3+",
video_encoding: "H264",
}),
}
);
}