OpenAI
GPT-4 Turbo (older v1106)
openai/gpt-4-1106-preview
The latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Training data: up to Apr 2023.
Note: heavily rate limited by OpenAI while in preview.
Tools
Function Calling
Context Window
128,000
Max Output Tokens
4,096
Using GPT-4 Turbo (older v1106) with Python API
Using GPT-4 Turbo (older v1106) with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="openai/gpt-4-1106-preview",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)