1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-01 22:29:52 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-06-07 18:34:45 +03:00
parent 235a7d42a6
commit 8f7f9d96ce
113 changed files with 15503 additions and 8309 deletions

5
docs/en/data/OpenAI/DeleteFile.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"URL": "https://api.athenaeum.digital:1122/",
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb...",
"FileID": "file-20"
}

5
docs/en/data/OpenAI/DownloadFile.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"URL": "https://api.athenaeum.digital:1122/",
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb...",
"FileID": "file-20"
}

View File

@@ -0,0 +1,5 @@
{
"URL": "https://api.athenaeum.digital:1122/",
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb...",
"FileID": "file-20"
}

4
docs/en/data/OpenAI/GetFilesList.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"URL": "https://api.athenaeum.digital:1122/",
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb..."
}

5
docs/en/data/OpenAI/UploadFile.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"URL": "https://api.athenaeum.digital:1122/",
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb...",
"File": "https://api.athenaeum.digital/test_data/picture.jpg"
}

View File

@@ -1,6 +1,6 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
AssistantID = "asst_5";
AssistantID = "asst_19";
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);

View File

@@ -0,0 +1,6 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);

View File

@@ -0,0 +1,6 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);

View File

@@ -0,0 +1,6 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);

View File

@@ -0,0 +1,4 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
Result = OPI_OpenAI.GetFilesList(URL, Token);

View File

@@ -1,6 +1,6 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
AssistantID = "asst_5";
AssistantID = "asst_19";
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);

View File

@@ -0,0 +1,8 @@
 URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
File = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
FileName = "picture3.png";
Destination = "assistants";
Result = OPI_OpenAI.UploadFile(URL, Token, FileName, File, Destination);

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | Ollama server URL |
| URL | --url | String | ✔ | OpenAI server URL |
| Token | --token | String | ✔ | OpenAI authorization token |
| Model | --model | String | ✔ | Models name |
| Name | --name | String | ✖ | Assistant name |

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | Ollama server URL |
| 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 |
@@ -37,7 +37,7 @@ Method at API documentation: [Delete assistant](https://platform.openai.com/docs
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
AssistantID = "asst_5";
AssistantID = "asst_19";
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
```

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | Ollama server URL |
| URL | --url | String | ✔ | OpenAI server URL |
| Token | --token | String | ✔ | OpenAI authorization token |
| Count | --limit | Number | ✖ | Maximum number of assistants returned |
| AdditionalParameters | --options | Structure Of KeyAndValue | ✖ | Additional request parameters, if necessary |

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | Ollama server URL |
| 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 |
@@ -37,7 +37,7 @@ Method at API documentation: [Retrieve assistant](https://platform.openai.com/do
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
AssistantID = "asst_5";
AssistantID = "asst_19";
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
```

View File

@@ -0,0 +1,48 @@
---
sidebar_position: 5
description: Delete file 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';
# Delete file
Deletes a previously uploaded file
`Function DeleteFile(Val URL, Val Token, Val FileID, Val AdditionalHeaders = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | OpenAI server URL |
| Token | --token | String | ✔ | OpenAI authorization token |
| FileID | --id | String | ✔ | File ID |
| AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
<br/>
:::tip
Method at API documentation: [Delete file](https://platform.openai.com/docs/api-reference/files/delete)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
```

View File

@@ -0,0 +1,48 @@
---
sidebar_position: 4
description: Download file 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';
# Download file
Get file data from the server
`Function DownloadFile(Val URL, Val Token, Val FileID, Val AdditionalHeaders = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| FileID | --id | String | &#x2714; | File ID |
| AdditionalHeaders | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: BinaryData - File data
<br/>
:::tip
Method at API documentation: [Retrieve file content](https://platform.openai.com/docs/api-reference/files/retrieve-contents)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
```

View File

@@ -0,0 +1,48 @@
---
sidebar_position: 3
description: Get information about file 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';
# Get information about file
Gets information about the file
`Function GetFileInformation(Val URL, Val Token, Val FileID, Val AdditionalHeaders = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| FileID | --id | String | &#x2714; | File ID |
| AdditionalHeaders | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
<br/>
:::tip
Method at API documentation: [Retrieve file](https://platform.openai.com/docs/api-reference/files/retrieve)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-20";
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
```

View File

@@ -0,0 +1,47 @@
---
sidebar_position: 1
description: Get list of files 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';
# Get list of files
Get a list of files with or without filtering
`Function GetFilesList(Val URL, Val Token, Val Count = 10000, Val AdditionalParameters = "", Val AdditionalHeaders = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| Count | --limit | Number | &#x2716; | Maximum number of assistants returned |
| AdditionalParameters | --options | Structure Of KeyAndValue | &#x2716; | Additional request parameters, if necessary |
| AdditionalHeaders | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
<br/>
:::tip
Method at API documentation: [List files](https://platform.openai.com/docs/api-reference/files/list)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
Result = OPI_OpenAI.GetFilesList(URL, Token);
```

View File

@@ -0,0 +1,54 @@
---
sidebar_position: 2
description: Upload file 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';
# Upload file
Uploads a file for further use in other requests
`Function UploadFile(Val URL, Val Token, Val FileName, Val Data, Val Destination, Val AdditionalHeaders = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| FileName | --name | String | &#x2714; | File name with extension |
| Data | --data | String, BinaryData | &#x2714; | Path to file or data |
| Destination | --purpose | String | &#x2714; | File purpose: assistants, batch, vision, user_data, evals |
| AdditionalHeaders | --headers | Map Of KeyAndValue | &#x2716; | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
<br/>
:::tip
Method at API documentation: [Upload file](https://platform.openai.com/docs/api-reference/files/create)
Parameters with Binary data type can also accept file paths on disk and URLs
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
File = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
FileName = "picture3.png";
Destination = "assistants";
Result = OPI_OpenAI.UploadFile(URL, Token, FileName, File, Destination);
```

View File

@@ -0,0 +1,4 @@
{
"label": "File management",
"position": "4"
}

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | Ollama server URL |
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| Model | --model | String | &#x2714; | Models name |
| Text | --input | Array Of String | &#x2714; | String or array of request strings |

View File

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | &#x2714; | Ollama server URL |
| URL | --url | String | &#x2714; | OpenAI server URL |
| Token | --token | String | &#x2714; | OpenAI authorization token |
| Model | --model | String | &#x2714; | Models name |
| Messages | --msgs | String, Array of String | &#x2714; | Conversation messages. See GetMessageStructure |