OpenAI
OpenAI

GPT-4 (older v0314)

openai/gpt-4-0314

GPT-4-0314 is the first version of GPT-4 released, with a context length of 8,192 tokens, and was supported until June 14. Training data: up to Sep 2021.

Tools

Function Calling

Context Window

8,192

Max Output Tokens

4,096

Using GPT-4 (older v0314) with Python API

Using GPT-4 (older v0314) 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-0314",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)