Assistants
Last updated
Last updated
Delete an assistant by ID
Assistant ID
DELETE /assistants/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content
Retrieve a specific assistant by ID
Assistant ID
GET /assistants/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"details": {
"id": "asst_zbNeYIuXIUSKVHjJkfRo6ilv",
"name": "assistant",
"description": "text",
"model": "gpt-4",
"instructions": "You are a helpful assistant, do your best to answer question and query",
"temperature": 1,
"top_p": 1,
"tools": [
"function",
"code_interpreter",
"file_search"
],
"tool_resources": {
"ANY_ADDITIONAL_PROPERTY": {}
}
},
"credential": "7db93c02-8d5a-4117-a8f1-3dfb6721b339",
"iconSrc": "/images/assistant.png",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
Create a new assistant with the provided details
d290f1ee-6c54-4b01-90e6-d701748f0851
7db93c02-8d5a-4117-a8f1-3dfb6721b339
/images/assistant.png
2024-08-24T14:15:22Z
2024-08-24T14:15:22Z
POST /assistants HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 526
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"details": {
"id": "asst_zbNeYIuXIUSKVHjJkfRo6ilv",
"name": "assistant",
"description": "text",
"model": "gpt-4",
"instructions": "You are a helpful assistant, do your best to answer question and query",
"temperature": 1,
"top_p": 1,
"tools": [
"function",
"code_interpreter",
"file_search"
],
"tool_resources": {
"ANY_ADDITIONAL_PROPERTY": {}
}
},
"credential": "7db93c02-8d5a-4117-a8f1-3dfb6721b339",
"iconSrc": "/images/assistant.png",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"details": {
"id": "asst_zbNeYIuXIUSKVHjJkfRo6ilv",
"name": "assistant",
"description": "text",
"model": "gpt-4",
"instructions": "You are a helpful assistant, do your best to answer question and query",
"temperature": 1,
"top_p": 1,
"tools": [
"function",
"code_interpreter",
"file_search"
],
"tool_resources": {
"ANY_ADDITIONAL_PROPERTY": {}
}
},
"credential": "7db93c02-8d5a-4117-a8f1-3dfb6721b339",
"iconSrc": "/images/assistant.png",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
Update the details of an existing assistant
Assistant ID
d290f1ee-6c54-4b01-90e6-d701748f0851
7db93c02-8d5a-4117-a8f1-3dfb6721b339
/images/assistant.png
2024-08-24T14:15:22Z
2024-08-24T14:15:22Z
PUT /assistants/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 526
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"details": {
"id": "asst_zbNeYIuXIUSKVHjJkfRo6ilv",
"name": "assistant",
"description": "text",
"model": "gpt-4",
"instructions": "You are a helpful assistant, do your best to answer question and query",
"temperature": 1,
"top_p": 1,
"tools": [
"function",
"code_interpreter",
"file_search"
],
"tool_resources": {
"ANY_ADDITIONAL_PROPERTY": {}
}
},
"credential": "7db93c02-8d5a-4117-a8f1-3dfb6721b339",
"iconSrc": "/images/assistant.png",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"details": {
"id": "asst_zbNeYIuXIUSKVHjJkfRo6ilv",
"name": "assistant",
"description": "text",
"model": "gpt-4",
"instructions": "You are a helpful assistant, do your best to answer question and query",
"temperature": 1,
"top_p": 1,
"tools": [
"function",
"code_interpreter",
"file_search"
],
"tool_resources": {
"ANY_ADDITIONAL_PROPERTY": {}
}
},
"credential": "7db93c02-8d5a-4117-a8f1-3dfb6721b339",
"iconSrc": "/images/assistant.png",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}