HeyGen-Official / StreamingAvatar

76 stars 54 forks source link

Error talking to AI #16

Open t0m82 opened 1 month ago

t0m82 commented 1 month ago

I successfully set up the local streaming avatar and made it to Repeat my Message. I as well created a OpenAI API key and included it into the server.js. But when pressing the "Talk" button I always get the error

Talking to LLM... please wait Error talking to AI

Are there any logs or details what the error means and how to resolve the issue?

t0m82 commented 1 month ago

OK, solved it myself. In console it stated You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors. so I needed to prepay some credits with OpenAI first to use the API that way.

Ymakercc commented 1 month ago

好的,自己解决了。在控制台中,它说所以我需要先向 OpenAI 预付一些积分才能以这种方式使用 API。You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.

Brother, I've encountered the same issue. How did you resolve it? Do you have to prepay credits to use the OpenAI key?

t0m82 commented 1 month ago

You need to load tokens to your OpenAI Account - prepaied https://platform.openai.com/settings/organization/billing/overview