AIGCT / EASYChatGPT

This is an application project of 'chatgpt',only applicable to desktop environment.
556 stars 690 forks source link

如何解决以下问题呢? #6

Open Travis13197 opened 1 year ago

Travis13197 commented 1 year ago

Traceback (most recent call last): File "app.py", line 5, in run() File "/home/liuchuanyang13/ChatGPT/EASYChatGPT-main/bbot.py", line 24, in run out = chatbot.ask(input_text) File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/revChatGPT/Official.py", line 139, in ask completion = self._get_completion( File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/revChatGPT/Official.py", line 64, in _get_completion return openai.Completion.create( File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/openai/api_resources/completion.py", line 25, in create return super().create(*args, **kwargs) File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/openai/api_resources/abstract/engine_apiresource.py", line 153, in create response, , api_key = requestor.request( File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/openai/api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/openai/api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "/home/liuchuanyang13/anaconda3/lib/python3.8/site-packages/openai/api_requestor.py", line 679, in _interpret_response_line

raise self.handle_error_response( openai.error.AuthenticationError: Incorrect API key provided: sk-xxxxxx. You can find your API key at https://platform.openai.com/account/api-keys.