OpenAI
GPT-3.5 Turbo
openai/gpt-3.5-turbo
GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks.
Updated by OpenAI to point to the latest version of GPT-3.5. Training data up to Sep 2021.
Tools
Function Calling
Context Window
16,385
Max Output Tokens
4,096
Using GPT-3.5 Turbo with Python API
Using GPT-3.5 Turbo 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",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)