Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行后提示That model does not exist #5

Open
PonsLee opened this issue Feb 8, 2023 · 5 comments
Open

运行后提示That model does not exist #5

PonsLee opened this issue Feb 8, 2023 · 5 comments

Comments

@PonsLee
Copy link

PonsLee commented Feb 8, 2023

Traceback (most recent call last):
File "/EASYChatGPT-main/app.py", line 5, in
run()
File "/EASYChatGPT-main/bbot.py", line 24, in run
out = chatbot.ask(input_text)
File "/usr/local/lib/python3.9/site-packages/revChatGPT/Official.py", line 139, in ask
completion = self._get_completion(
File "/usr/local/lib/python3.9/site-packages/revChatGPT/Official.py", line 64, in _get_completion
return openai.Completion.create(
File "/usr/local/lib/python3.9/site-packages/openai/api_resources/completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 679, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: That model does not exist

@hucc1995
Copy link

hucc1995 commented Feb 8, 2023

Update 2023/02/08: This model has been revoked by OpenAI. We are working towards a new model.
As a temporary workaround, set environment variable export GPT_ENGINE="text-davinci-003" (Costs credit)

@563816752
Copy link

+1

@YZJ2023
Copy link

YZJ2023 commented Feb 10, 2023

(EASYChatGPT) root@test3:/data/EASYChatGPT# export GPT_ENGINE="text-davinci-003"
(EASYChatGPT) root@test3:/data/EASYChatGPT# python app.py
遇到报错优先考虑重新运行

你的 输入:
hello
Traceback (most recent call last):
File "app.py", line 7, in
run()
File "/data/EASYChatGPT/bbot.py", line 24, in run
out = chatbot.ask(input_text)
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/revChatGPT/Official.py", line 50, in ask
stop=["\n\n\n"],
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 160, in create
request_timeout=request_timeout,
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 623, in _interpret_response
stream=False,
File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 680, in _interpret_response_line
rbody, rcode, resp.data, rheaders, stream_error=stream_error
openai.error.InvalidRequestError: That model does not exist

@PonsLee
Copy link
Author

PonsLee commented Feb 10, 2023

(EASYChatGPT) root@test3:/data/EASYChatGPT# export GPT_ENGINE="text-davinci-003" (EASYChatGPT) root@test3:/data/EASYChatGPT# python app.py 遇到报错优先考虑重新运行

你的 输入: hello Traceback (most recent call last): File "app.py", line 7, in run() File "/data/EASYChatGPT/bbot.py", line 24, in run out = chatbot.ask(input_text) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/revChatGPT/Official.py", line 50, in ask stop=["\n\n\n"], File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/completion.py", line 25, in create return super().create(*args, **kwargs) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 160, in create request_timeout=request_timeout, File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 623, in _interpret_response stream=False, File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 680, in _interpret_response_line rbody, rcode, resp.data, rheaders, stream_error=stream_error openai.error.InvalidRequestError: That model does not exist

try
export GPT_ENGINE=text-davinci-003
and
pip3 install tiktoken

@YZJ2023
Copy link

YZJ2023 commented Feb 10, 2023

(EASYChatGPT) root@test3:/data/EASYChatGPT# export GPT_ENGINE="text-davinci-003" (EASYChatGPT) root@test3:/data/EASYChatGPT# python app.py 遇到报错优先考虑重新运行
你的 输入: hello Traceback (most recent call last): File "app.py", line 7, in run() File "/data/EASYChatGPT/bbot.py", line 24, in run out = chatbot.ask(input_text) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/revChatGPT/Official.py", line 50, in ask stop=["\n\n\n"], File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/completion.py", line 25, in create return super().create(*args, **kwargs) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 160, in create request_timeout=request_timeout, File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 623, in _interpret_response stream=False, File "/home/user/anaconda3/envs/EASYChatGPT/lib/python3.7/site-packages/openai/api_requestor.py", line 680, in _interpret_response_line rbody, rcode, resp.data, rheaders, stream_error=stream_error openai.error.InvalidRequestError: That model does not exist

try export GPT_ENGINE=text-davinci-003 and pip3 install tiktoken

I solved this problem by edit "/python3.7/site-packages/revChatGPT/Official.py"
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants