You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your OPENAI_API_KEY exceeds the quota, you'll only get an empty response from gpt.
The actual response from openai:
{
"error": {
"message": "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.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}
This error should be handled, and a message should be shown to the user that their quota has been exceeded. lib/ai.ts:258 is where the result is decoded into this message.
The text was updated successfully, but these errors were encountered:
@mattvr Updated, tested, and still an empty response. I debugged some more, and the chunks is never filled, because frameEnd already is -1. We never get to the for-loop, where the error is thrown: for (const chunk of chunks). Also, it would be beneficial if the error that was returned from OpenAI would be shown, instead of "error found".
If your
OPENAI_API_KEY
exceeds the quota, you'll only get an empty response fromgpt
.The actual response from openai:
This error should be handled, and a message should be shown to the user that their quota has been exceeded.
lib/ai.ts:258
is where the result is decoded into this message.The text was updated successfully, but these errors were encountered: