Delete assistant
Deletes a previously created assistant
- Parameters
- Advanced call ?
Function DeleteAssistant(Val URL, Val Token, Val AssistantID, Val AdditionalHeaders = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | OpenAI server URL |
| Token | --token | String | ✔ | OpenAI authorization token |
| AssistantID | --id | String | ✔ | Assistant ID |
| AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns
Map Of KeyAndValue - Processing result
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: Delete assistant
1C:Enterprise/OneScript code example
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We34...";
AssistantID = "asst_2";
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
- Bash
- CMD/Bat
oint openai DeleteAssistant \
--url "https://hut.openintegrations.dev/localai/" \
--token "***" \
--id "asst_11"
oint openai DeleteAssistant ^
--url "https://hut.openintegrations.dev/localai/" ^
--token "***" ^
--id "asst_11"
Result
{
"id": "asst_11",
"object": "assistant.deleted",
"deleted": true
}