OpenAI
OpenAI

GPT-3.5 Turbo 16k

openai/gpt-3.5-turbo-1106

The latest GPT-3.5 Turbo model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Training data: up to Sep 2021.

Tools

Function Calling

Context Window

16,385

Max Output Tokens

4,096

Using GPT-3.5 Turbo 16k with Python API

Using GPT-3.5 Turbo 16k 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-3.5-turbo-1106",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)