binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
64.56k stars 7.98k forks source link

json error , json 异常 求助 #298

Closed freemank1224 closed 1 year ago

freemank1224 commented 1 year ago

Describe the bug 简述 配置都是成功的,但是干啥都直接跳出这一段:

[Local Message] 异常

Traceback (most recent call last): File "C:\Users\Dyson\Documents\chatgpt_academic\predict.py", line 169, in predict if len(json.loads(chunk.decode()[6:])['choices'][0]["delta"]) == 0: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\envs\academic\Lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\envs\academic\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\Anaconda3\envs\academic\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) "error": { "message": "Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact support@openai.com.", "type": "access_terminated", "param": null, "code": null }}

Screen Shot 截图 image

binaryYuki commented 1 year ago

git更新一下代码就会变成[Local Message] You exceeded your current quota. OpenAI以账户额度不足为由,拒绝服务. 检查了余额重新生成了APIKEY也无效

binary-husky commented 1 year ago

用https://huggingface.co/spaces/qingxu98/gpt-academic 检查apikey

cunning2017 commented 1 year ago

解决了吗 我也是

binaryYuki commented 1 year ago

请尝试更新

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年4月17日(星期一) 上午10:58 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [binary-husky/chatgpt_academic] json error , json 异常 求助 (Issue #298)

解决了吗 我也是

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

freemank1224 commented 1 year ago

解决了吗 我也是

解决了,这个问题的根本原因是我的API权限被封了…… 二月就被封了 只是我不知道,但是我的账号是正常用的,我看了邮件才知道。换了别人的API就好了