zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT4.0/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
29.48k stars 7.8k forks source link

tag:1.6.5,model填: gpt-4o,无法使用 #1990

Closed mmdctjj closed 3 months ago

mmdctjj commented 3 months ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

MacOS

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

model填的 gpt-4o 确认了open-key是正确的,因为在别的平台可以使用

问题描述 😯

Loading the contact, this may take a little while. [INFO][2024-05-16 13:54:20][wechat_channel.py:131] - Wechat login success, user_id: @b6d17def3014c87e14f0210c97bfa839d1d232242e57dde43b672573997faaf3, nickname: ChatGpt-4 Start auto replying. [INFO][2024-05-16 13:54:35][bridge.py:61] - create bot chatGPT for chat [INFO][2024-05-16 13:54:35][chat_gpt_bot.py:49] - [CHATGPT] query=怎么学习物理 [WARNING][2024-05-16 13:54:36][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key. [WARNING][2024-05-16 13:54:56][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试 [WARNING][2024-05-16 13:54:56][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key. [WARNING][2024-05-16 13:55:16][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试 [WARNING][2024-05-16 13:55:17][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key. [INFO][2024-05-16 13:55:17][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 提问太快啦,请休息一下再问我吧), receiver=@xxxxxx

实际得到的结果:[ERROR] 提问太快啦,请休息一下再问我吧

终端日志 📒

Loading the contact, this may take a little while.
[INFO][2024-05-16 13:54:20][wechat_channel.py:131] - Wechat login success, user_id: @b6d17def3014c87e14f0210c97bfa839d1d232242e57dde43b672573997faaf3, nickname: ChatGpt-4
Start auto replying.
[INFO][2024-05-16 13:54:35][bridge.py:61] - create bot chatGPT for chat
[INFO][2024-05-16 13:54:35][chat_gpt_bot.py:49] - [CHATGPT] query=怎么学习物理
[WARNING][2024-05-16 13:54:36][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key.
[WARNING][2024-05-16 13:54:56][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试
[WARNING][2024-05-16 13:54:56][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key.
[WARNING][2024-05-16 13:55:16][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试
[WARNING][2024-05-16 13:55:17][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try again after 00:00 the next day. If you have additional requirements, please visit https://buyca.shop to purchase a premium key.
[INFO][2024-05-16 13:55:17][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
提问太快啦,请休息一下再问我吧), receiver=@xxxxxx
6vision commented 3 months ago

[WARNING][2024-05-16 13:54:36][chat_gpt_bot.py:135] - [CHATGPT] RateLimitError: 免费gpt-4模型限制每日3次请求,请00:00后再试,如有更多需求,请访问 https://buyca.shop/ 购买付费API。The free gpt-4 model is limited to 3 requests per day. Please try

日志提示很明确,使用的api key的限制,可以使用linkai的服务,按量付费使用