The supported model
Model and context length for Open AI API support:
OpenAI Models
Platform | Model Identifier | Notes |
---|---|---|
GPT | gpt-3.5-turbo | |
GPT | gpt-3.5-turbo-1106 | |
GPT | gpt-3.5-turbo-0125 | |
GPT | gpt-3.5-turbo-0613 | |
GPT | gpt-3.5-turbo-instruct | |
GPT | gpt-3.5-turbo-16k | |
GPT | gpt-3.5-turbo-16k-0613 | |
GPT | gpt-3.5-turbo-0301 | |
GPT | gpt-4-0125-preview | |
GPT | gpt-4-1106-preview | |
GPT | gpt-4-1106-vision-preview | |
GPT | gpt-4 | |
GPT | dall-e-2 | |
GPT | dall-e-3 | |
GPT | gpt-4-0314 | |
GPT | gpt-4-0613 | |
GPT | gpt-4-32k-0314 | |
GPT | gpt-4-32k | |
GPT | gpt-4-turbo-2024-04-09 | |
GPT | gpt-4-turbo | |
GPT | gpt-4-turbo-preview |
from openai import OpenAI
client = OpenAI(
api_key = "Own API key",
base_url = "https://api.zgiai.com/v1"
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Who are you?",
}
],
model="gpt-3.5-turbo",
)
print(chat_completion.choices[0].message.content)