You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 317, in translate_text
completion = create_chat_completion(prompt, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 154, in create_chat_completion
return openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 763, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: sk-. You can find your API key at https://platform.openai.com/account/api-keys.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 515, in
translated_short_text = translate_and_store(short_text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 355, in translate_and_store
translated_text = translate_text(text)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 335, in translate_text
completion = create_chat_completion(prompt, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 154, in create_chat_completion
return openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 763, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: sk-. You can find your API key at https://platform.openai.com/account/api-keys.
反复确认了生成的API key没有问题,而且刷新后发现API key均显示未使用过。
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 317, in translate_text
completion = create_chat_completion(prompt, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 154, in create_chat_completion
return openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 763, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: sk-. You can find your API key at https://platform.openai.com/account/api-keys.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 515, in
translated_short_text = translate_and_store(short_text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 355, in translate_and_store
translated_text = translate_text(text)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 335, in translate_text
completion = create_chat_completion(prompt, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\Downloads\ebook-GPT-translator-main\text_translation.py", line 154, in create_chat_completion
return openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "C:\Users\用户\anaconda3\Lib\site-packages\openai\api_requestor.py", line 763, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: sk-. You can find your API key at https://platform.openai.com/account/api-keys.
反复确认了生成的API key没有问题,而且刷新后发现API key均显示未使用过。
The text was updated successfully, but these errors were encountered: