Message": "The model `text-davinci-004` does not exist" What is the new model?


I’m using API. Chat gbt 3.5 turbo. I keep on getting this error on my terminal. Has this model been deprecated? if so, what should I use in its place?

Thank you all

The model text-davinci-004 never existed.

You are likely asking the AI to write some code for you, using GPT4 or a new version, and it extrapolated from its limited knowledge of new things what that could mean.

Additionally, the AI can’t program for the Python or node.js libraries released late last year.

You should look at the API reference in the forum’s sidebar for examples. Like:

from openai import OpenAI
client = OpenAI()

completion =
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello!"}


(this uses the OPENAI_API_KEY you set in the OS environment)

1 Like