Crie Assistant (V1)
POST
https://api.openai.com/v1/assistants
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/assistants' \
--header 'Content-Type: application/json' \
--data-raw '{
"instructions": "You are a personal math tutor. When asked a question, write and run Python code to answer the question.",
"name": "Math Tutor",
"tools": [{"type": "code_interpreter"}],
"model": "gpt-4-turbo"
}'
Response Response Example
{
"id": "string",
"object": "string",
"created_at": 0,
"name": "string",
"description": null,
"model": "string",
"instructions": "string",
"tools": [
{
"type": "string"
}
],
"file_ids": [
"string"
],
"metadata": {},
"top_p": 0,
"temperature": 0,
"response_format": "string"
}
Request
Body Params application/json
Responses
Modified at 2025-01-26 07:00:05