Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event cretion not working with voice audio #5

Open
datacrud8 opened this issue Mar 8, 2024 · 2 comments
Open

Event cretion not working with voice audio #5

datacrud8 opened this issue Mar 8, 2024 · 2 comments

Comments

@datacrud8
Copy link

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.

@datacrud8
Copy link
Author

Exactly function calls are not working :
tool_calls:[{

used : model: 'gpt-3.5-turbo-1106',

Can you able to validate this please.

@supershaneski
Copy link
Owner

Do you have a mongodb installed locally? It is used in saving the context and for the calendar and memory data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants