I can see the GPT-4 models in the playground, but when attempting to call the API using python, it does call model 3 only. I got the credits yesterday, not sure if that would matter.
Sample code
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("OPENAI_API_KEY"),
)
prompt = "Are you using GPT-4?"
response = client.chat.completions.create(
model="gpt-4-1106-preview",
messages=[
{
"role": "user",
"content": prompt,
},
]
)
print(response.choices[0].message.content)
Output
I am based on OpenAI's GPT-3.5 model. As of my last update, GPT-4 has not been released, and I don't have the capability to update myself.
library version using pip show openai
Name: openai
Version: 1.1.1
Summary: Client library for the openai API