Replies: 3 comments 1 reply
-
是什么方式部署的,环境变量会覆盖参数。试试最新的代码呢? |
Beta Was this translation helpful? Give feedback.
0 replies
-
我也遇到了同样的问题. 我是通过境外服务器部署的. |
Beta Was this translation helpful? Give feedback.
1 reply
-
我遇到过,一定要从openai那边直接点击copy按钮过来,中间不要转,会导致字符编码问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Start auto replying.
[INFO][2023-03-29 14:28:46][bridge.py:28] - create bot chatGPT for chat
[INFO][2023-03-29 14:28:46][chat_gpt_bot.py:34] - [OPEN_AI] query=可以嘛
[ERROR][2023-03-29 14:28:48][chat_gpt_bot.py:129] - Incorrect API key provided: YOUR API KEY. You can find your API key at https://platform.openai.com/account/api-keys.
Traceback (most recent call last):
File "e:\code\gpt on wechat\chatgpt-on-wechat\bot\chatgpt\chat_gpt_bot.py", line 102, in reply_text
response = openai.ChatCompletion.create(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: YOUR API KEY. You can find your API key at https://platform.openai.com/account/api-keys.
[INFO][2023-03-29 14:28:48][wechat_channel.py:234] - [WX] sendMsg=Reply(type=ERROR, content=ERROR:
请再问我一次吧), receiver=@c11380800655cfc1db33ba54b1bd0
Beta Was this translation helpful? Give feedback.
All reactions