Gpt-4.0 with own key says does not exist

def get_completion(prompt, model=“gpt-4.0”):
messages = [{“role”: “user”, “content”: prompt}]
response = openai.ChatCompletion.create(
temperature=0, # this is the degree of randomness of the model’s output
return response.choices[0].message[“content”]

i have an invite to gpt4 and created a new key just now.

i also tried ‘GPT-4’ and ‘GPT-4-32k’ all valid names from the docs.

In the course it is used the gpt-3.5-turbo!

I know! got-4 model works offline now out of the blue!!! Thanks I’m happy :blush:

1 Like