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

官方 API 出错 临时解决方案 | That model does not exists | The server is overloaded or not ready yet. #82

Closed
lss233 opened this issue Feb 8, 2023 · 23 comments
Labels
documentation Improvements or additions to documentation

Comments

@lss233
Copy link
Owner

lss233 commented Feb 8, 2023

自 2023/2/8 起, 官方 API 的免费模型在调用时会出现 That model does not exists 或者 The server is overloaded or not ready yet. 的提示,以下为临时解决方案:

方案1:使用付费的 text-davinci-003 模型

想要使用此模型,需要设置环境变量 GPT_ENGINE=text-davinci-003
8A$96P~2XUVN5@F)1I6N7H9

Windows 用户可以参考此教程:https://view.inews.qq.com/k/20211202A08CCW00

Linux 用户 可以使用 export GPT_ENGINE=text-davinci-003 设置终端环境变量,然后执行 python3 bot.py 启动程序。

docker 用户可以通过命令或 docker-compose.yaml 传递配置,修改文件后使用 docker-compose up -d 来更新容器。

  chatgpt:
    image: lss233/chatgpt-mirai-qq-bot:api-version
    restart: always
    environment:
      GPT_ENGINE: text-davinci-003 # 主要是这行。如果你想使用付费模型,就加上这一行
    ports:
      - 14500:14500
    volumes:
      - ./config.cfg:/app/config.cfg
      # - ./fonts:/app/fonts # 如果你想自定义字体,就解除注释
      # - ./presets:/app/presets # 如果你想自定义预设,就解除注释

方案2:使用 1.5.x 版的网页接口

此方案使用浏览器模拟,访问 ChatGPT 进行聊天。
它需要你的服务器能够正常打开 ChatGPT 的网页(需要海外 IP)。
此外,你需要一个使用量比较少的 IP,否则可能会遇到被 Cloudflare 拦截的情况。
下载地址: https://github.com/lss233/chatgpt-mirai-qq-bot/releases/tag/v1.5.4.2

@lss233 lss233 added the documentation Improvements or additions to documentation label Feb 8, 2023
@SuInk
Copy link

SuInk commented Feb 8, 2023

这个付费的是免费额度只有18美元的那个吗

@lss233
Copy link
Owner Author

lss233 commented Feb 8, 2023

这个付费的是免费额度只有18美元的那个吗

@SuInk
Copy link

SuInk commented Feb 8, 2023

这个付费的是免费额度只有18美元的那个吗

好的,谢谢作者

@ctexthuang
Copy link

docker 把环境变量写进去后 依然还是报错
出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚对话” 来回溯到上一条对话,你上一条说的我就当作没看见。
The server experienced an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists. {
"error": {
"message": "The server experienced an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists.",
"type": "server_error",
"param": null,
"code": null
}
}
500 {'error': {'message': 'The server experienced an error while processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists.', 'type': 'server_error', 'param': None, 'code': None}} {'Date': 'Thu, 09 Feb 2023 07:02:50 GMT', 'Content-Type': 'application/json', 'Content-Length': '292', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'Openai-Model': 'text-davinci-003', 'Openai-Organization': 'user-yg202d5ypynlo8rlaneyhh4j', 'Openai-Processing-Ms': '30167', 'Openai-Version': '2020-10-01', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Request-Id': '223146a6522ef7a022415978a803d8b8'}

The server had an error while processing your request. Sorry about that!

@ctexthuang
Copy link

启动命令
docker run --name mirai-chatgpt-bot -e XPRA_PASSWORD=123456 -v /home/docker_composer/chatgpt/config.cfg:/app/config.cfg --env GPT_ENGINE=text-davinci-003 --network host lss233/chatgpt-mirai-qq-bot:latest

@lss233
Copy link
Owner Author

lss233 commented Feb 9, 2023

这个应该是别的问题导致的,你可以开一个新的 issue 跟进一下,从参数 'Openai-Model': 'text-davinci-003' 里看的话是设置成功了。

@ctexthuang
Copy link

这个应该是别的问题导向的,你可以开一个新的问题跟进一下,从参数'Openai-Model': 'text-davinci-003'里看的话是设置成功了。

是不是因为我忘记开翻墙了导致的。要不我直接把机子假设到国外去吧

@lss233
Copy link
Owner Author

lss233 commented Feb 9, 2023

和这个没关系,你已经连上服务器了,网页版才需要梯子。

@ctexthuang
Copy link

和这个没关系,你已经连上服务器了,网页版才需要梯子。

也对。这个回复是服务器 回复的。

@lss233 lss233 pinned this issue Feb 9, 2023
@lss233 lss233 changed the title 临时解决方案 | The server is overloaded or not ready yet. 官方 API 出错 临时解决方案 | That model does not exists | The server is overloaded or not ready yet. Feb 9, 2023
@lss233
Copy link
Owner Author

lss233 commented Feb 14, 2023

#108 已解决。

@lss233 lss233 closed this as completed Feb 14, 2023
@lss233 lss233 unpinned this issue Feb 14, 2023
@lss233 lss233 pinned this issue Feb 14, 2023
@topsuder
Copy link

是这个么 api登录的话我这边聊天一致报错

@haoyuexinghai
Copy link

为什么我使用1.5.5网页版安装,启动Mirai.cmd会出现
系统找不到指定的路径
Process exited with 3
请按任意键继续. . .

@dhzq
Copy link

dhzq commented Feb 17, 2023

image
image
两种方法都试了,还是不行,依旧That model does not exist
image

@lss233
Copy link
Owner Author

lss233 commented Feb 19, 2023

两种方法都试了,还是不行,依旧That model does not exist image

你改完以后要更新容器, docker-compose up -d

@GTian28
Copy link
Contributor

GTian28 commented Feb 20, 2023

请问免费额度的18美元是在哪儿看到的?大概可以用多少次呢?

@AzXuan
Copy link

AzXuan commented Feb 21, 2023

请问免费额度的18美元是在哪儿看到的?大概可以用多少次呢?

https://platform.openai.com/account/usage
官网的这个网址可以看到,要看实际使用了,换算是按照模型使用token来算钱的
以text-davinci-003 举例 价格是:$0.0200 / 1K tokens
一汉字约等于2token左右 大概可以使用十万字左右

@nanomm
Copy link

nanomm commented Feb 27, 2023

请问免费额度的18美元是在哪儿看到的?大概可以用多少次呢?

https://platform.openai.com/account/usage 官网的这个网址可以看到,要看实际使用了,换算是按照模型使用token来算钱的 以text-davinci-003 举例 价格是:$0.0200 / 1K tokens 一汉字约等于2token左右 大概可以使用十万字左右

请问意思是免费版18刀的额度用完就不能用了吗?

@GTian28
Copy link
Contributor

GTian28 commented Feb 27, 2023

请问免费额度的18美元是在哪儿看到的?大概可以用多少次呢?

https://platform.openai.com/account/usage 官网的这个网址可以看到,要看实际使用了,换算是按照模型使用token来算钱的 以text-davinci-003 举例 价格是:$0.0200 / 1K tokens 一汉字约等于2token左右 大概可以使用十万字左右

请问意思是免费版18刀的额度用完就不能用了吗?

充钱就行了。不过话说回来api版本那么笨,也没啥可用的

@AzXuan
Copy link

AzXuan commented Feb 28, 2023

对,不大聪明,不过貌似可以自己训练模型,也还行,反正是拿来玩的

@imlhx
Copy link

imlhx commented Mar 1, 2023

一样的api key 没付费这个插件能用 不会产生#82的issue https://github.com/obiscr/ChatGPT
要不看下那个作者怎么调用的 ChatGPT?

@lss233
Copy link
Owner Author

lss233 commented Mar 5, 2023

目前最新版支持 GPT3.5 的 api,其对话效果强、响应速度快,原api版已不推荐使用。

@YUANWEI888
Copy link

wechat部署的机器人聊一段时间后只回复“Something went wrong” 是GPT问题还是服务器问题

@AthanaD
Copy link

AthanaD commented Mar 25, 2023

在Linux采用一键命令调用后,没有输入API-KEY的地方,导致机器人无法使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests