You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
49 lines
1.4 KiB
Plaintext
Vendored
49 lines
1.4 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
description: Retrieve assistant and other functions to work with OpenAI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, OpenAI]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Retrieve assistant
|
|
Retrieves information about an assistant by ID
|
|
|
|
|
|
|
|
`Function RetrieveAssistant(Val URL, Val Token, Val AssistantID, Val AdditionalHeaders = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| URL | --url | String | ✔ | Ollama 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
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [Retrieve assistant](https://platform.openai.com/docs/api-reference/assistants/getAssistant)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
URL = "https://api.athenaeum.digital:1122/";
|
|
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
|
|
|
|
AssistantID = "asst_5";
|
|
|
|
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
|
```
|
|
|
|
|
|
|
|
|
|
|