echo$re->choices[0]->text; }elseif(isset($re->error) && $re->error->type =='insufficient_quota'){ //如果api key限额满了 //目前openAI免费注册的账号,有18美元的api请求限额(23年4月前可用) } 整个研发过程还是很简单,关键代码就在上面,想自己搭一个的话,可以去看看商城的代码。 游戏细节演示...
"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" } }...
.type === 'insufficient_quota') { console.log('配额不足,已经自动更新账号') const hostname = os.hostname() if (hostname !== 'LAPTOP-4KDIA4A3') { customSendEmail({ subject: '配额不足,已经自动更新账号', html: `historyAccountIndex:${historyAccountIndex},currentAccountIndex: ${current...
const { Configuration, OpenAIApi } = require("openai"); const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration); const completion = await openai.createChatCompletion({ model: "gpt-3.5-turbo", messages: [{role: "user",...
# Checkforspecific error messages anddeleteifnecessaryifany(keywordinerror_messageforkeywordin["account_deactivated","insufficient_quota","invalid_api_key","no_organization","model_not_found"]):self.delete_channel(id_)returnresultelse:print(f"Test request for ID {id_} failed with status code: ...
这是我的usage信息,为什么还是显示:JSON解析错误。请重置对话。收到的内容: “error”: { “message”: “You exceeded your current quota, please check your plan and billing details.”, “type”: “insufficient_quota”, “param”: null, “code”: null }}...
"error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null }} 翻译过来就是你的OpenAI账号没额度了,需要充值,毕竟ChatGPT3.5和ChatGPT4.0是付费版的。那如果还是想用这个学术润色功能怎么办呢...
Overview Versions Reviews Quick Start Ratings & Reviews Write Review Report Issue JetBrains doesn't verify reviews. Learn more Be the first one to leave a review. 2.8 22 Ratings (43,215 Downloads) 5 4 3 2 1 Feedback Report Content Terms of Use Legal, Privacy and Security Copyrigh...
Error code: 429 - {'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': None, '...
If you see insufficient_quota in the error, you could run the following cURL command to check if your account has enough quota. (Make sure to replace $OPENAI_API_KEY with your key that you use in this extension) curl https://api.openai.com/v1/completions \ -H "Content-Type: applicati...