OpenAI
OpenAI

GPT-4 32k (older v0314)

openai/gpt-4-32k-0314

GPT-4-32k is an extended version of GPT-4, with the same capabilities but quadrupled context length, allowing for processing up to 40 pages of text in a single pass. This is particularly beneficial for handling longer content like interacting with PDFs without an external vector database. Training data: up to Sep 2021.

Tools

Function Calling

Context Window

32,768

Max Output Tokens

4,096

Using GPT-4 32k (older v0314) with Python API

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