ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] openai.error.InvalidRequestError with engine "text-chat-davinci-002-20230126"

Open ofikodar opened this issue 2 years ago • 2 comments

I am encountering an error when using the OpenAI API with the following code:

completion = openai.Completion.create( engine="text-chat-davinci-002-20230126", prompt=prompt, temperature=0.5, max_tokens=4000 - int(len(prompt) / 3), stop=["\n\n\n"], )

I am receiving the error: openai.error.InvalidRequestError: That model does not exist

Here is a code snippet that reproduces the error: `from revChatGPT.Official import Chatbot

API_KEY = ''

if name == 'main': chatbot = Chatbot(API_KEY) response = chatbot.ask("this is a test") print(response)`

ofikodar avatar Feb 04 '23 13:02 ofikodar

Upgrade your library

acheong08 avatar Feb 04 '23 13:02 acheong08

pip3 install --upgrade revChatGPT

acheong08 avatar Feb 04 '23 13:02 acheong08