You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0

What kind? A “generative pretrained transformer”. Pretrained means its knowledge corpus is collected ahead of time, used for a lengthy costly training, and then set in stone.

The OpenAI API is in constant flux of features, like many others. You would have to use in-context training (documentation) to teach it.

Just minutes ago a gave a tutorial on how to make enhanced calls to a latest model using Python > 1.0. It is not unique, as there are many other examples on the forum, along with that sidebar link “Documentation”.

Giving an AI examples of proper use will also improve its coding.

1 Like