TBXark / ChatGPT-Telegram-Workers

Deploy your own Telegram ChatGPT bot on Cloudflare Workers with ease.
https://t.me/ChatGPT_Telegram_Workers
MIT License
3.5k stars 834 forks source link

报这个错误,是因为什么原因?appkey的问题吗? #136

Closed jamesleeon closed 1 year ago

jamesleeon commented 1 year ago

ERROR:CHAT: OpenAI API 错误

Invalid URL (POST /v1/chat/completions) 参数: {"model":"gpt-3.5-turbo","messages":{"role":"system","content":"你是一个得力的助手"},{"role":"user","content":"你是谁?"}}

TBXark commented 1 year ago

你是不是设置 OPENAI_API_DOMAIN 了

TBXark commented 1 year ago

删掉OPENAI_API_DOMAIN的设置用默认的配置就可以了

jamesleeon commented 1 year ago

没有设定,仅仅设定了3个变量。API_KEY , CHAT_WHITE_LIST ,TELEGRAM_AVAILABLE_TOKENS

TBXark commented 1 year ago
image

其他人用其他框架和语言好像也遇到类似的问题,应该是那个ip被openai限制了

jamesleeon commented 1 year ago

好的,感谢,我怀疑也是ip问题导致。不知道这个ip的策略是什么...

heypig commented 1 year ago

我用了opencat之后, 提示You exceeded your current quota, please check your plan and billing details.

之后用telegram bot也遇到这个提示. 即使我申请了两个不同api_key (bot和opencat各自一个)

TBXark commented 1 year ago

我用了opencat之后, 提示You exceeded your current quota, please check your plan and billing details.

之后用telegram bot也遇到这个提示. 即使我申请了两个不同api_key (bot和opencat各自一个)

最近在大规模封账号,可以登陆官网看看自己账号情况