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

chatGPT.chatCompletion失败时获取不到原始错误信息 #164

Open
wangpenghua opened this issue Jul 17, 2023 · 0 comments
Open

chatGPT.chatCompletion失败时获取不到原始错误信息 #164

wangpenghua opened this issue Jul 17, 2023 · 0 comments

Comments

@wangpenghua
Copy link

apikey被封、限流或者余额不足时,拿不到OpenAI返回的原始错误信息
例如:

{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

因此无法根据错误信息里面的code去修改我数据库里面apikey的状态。

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

1 participant