-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Interesting project like it. tested in local:
Start voice audio and give some task put it in calendar events but not working. In the screen always this error:
"TypeError Cannot read properties of undefined (reading 'tool_calls')"
In the console log
chat {
id: 'chatcmpl-90MvTAiVlyVJ52ckbG1oPoMhO8wvY',
object: 'chat.completion',
created: 1709875155,
model: 'gpt-3.5-turbo-1106',
choices: [
{
index: 0,
message: [Object],
logprobs: null,
finish_reason: 'tool_calls'
}
],
usage: { prompt_tokens: 1352, completion_tokens: 20, total_tokens: 1372 },
system_fingerprint: 'fp_f93e21ed76'
}
assistant1 {
role: 'assistant',
content: null,
tool_calls: [
{
id: 'call_VFklkG0uRwqcanqJF3jvH16n',
type: 'function',
function: [Object]
}
]
}
LoopCount: 1
data-response undefined
isArray false
Exactly throwing this error :
console.log("data-response", data.response.tool_calls)
console.log("isArray", Array.isArray(data.response.tool_calls))
Can you please check?
Thanks.