You've already forked OpenIntegrations
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:
5
docs/en/data/OpenAI/DeleteFile.json
vendored
Normal file
5
docs/en/data/OpenAI/DeleteFile.json
vendored
Normal 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
5
docs/en/data/OpenAI/DownloadFile.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "https://api.athenaeum.digital:1122/",
|
||||
"Token": "sk-or-vv-c5884ebe9f13fb143194bb07ecb...",
|
||||
"FileID": "file-20"
|
||||
}
|
||||
5
docs/en/data/OpenAI/GetFileInformation.json
vendored
Normal file
5
docs/en/data/OpenAI/GetFileInformation.json
vendored
Normal 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
4
docs/en/data/OpenAI/GetFilesList.json
vendored
Normal 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
5
docs/en/data/OpenAI/UploadFile.json
vendored
Normal 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"
|
||||
}
|
||||
2
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
2
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
@@ -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);
|
||||
|
||||
6
docs/en/examples/OpenAI/DeleteFile.txt
vendored
Normal file
6
docs/en/examples/OpenAI/DeleteFile.txt
vendored
Normal 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);
|
||||
6
docs/en/examples/OpenAI/DownloadFile.txt
vendored
Normal file
6
docs/en/examples/OpenAI/DownloadFile.txt
vendored
Normal 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);
|
||||
6
docs/en/examples/OpenAI/GetFileInformation.txt
vendored
Normal file
6
docs/en/examples/OpenAI/GetFileInformation.txt
vendored
Normal 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);
|
||||
4
docs/en/examples/OpenAI/GetFilesList.txt
vendored
Normal file
4
docs/en/examples/OpenAI/GetFilesList.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
URL = "https://api.athenaeum.digital:1122/";
|
||||
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
|
||||
|
||||
Result = OPI_OpenAI.GetFilesList(URL, Token);
|
||||
@@ -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);
|
||||
|
||||
8
docs/en/examples/OpenAI/UploadFile.txt
vendored
Normal file
8
docs/en/examples/OpenAI/UploadFile.txt
vendored
Normal 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);
|
||||
@@ -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 |
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
@@ -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 |
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
48
docs/en/md/OpenAI/File-management/Delete-file.mdx
vendored
Normal file
48
docs/en/md/OpenAI/File-management/Delete-file.mdx
vendored
Normal 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
48
docs/en/md/OpenAI/File-management/Download-file.mdx
vendored
Normal file
48
docs/en/md/OpenAI/File-management/Download-file.mdx
vendored
Normal 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 | ✔ | 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: 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
48
docs/en/md/OpenAI/File-management/Get-file-information.mdx
vendored
Normal file
48
docs/en/md/OpenAI/File-management/Get-file-information.mdx
vendored
Normal 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 | ✔ | 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: [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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
47
docs/en/md/OpenAI/File-management/Get-files-list.mdx
vendored
Normal file
47
docs/en/md/OpenAI/File-management/Get-files-list.mdx
vendored
Normal 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 | ✔ | 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 |
|
||||
| AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
54
docs/en/md/OpenAI/File-management/Upload-file.mdx
vendored
Normal file
54
docs/en/md/OpenAI/File-management/Upload-file.mdx
vendored
Normal 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 | ✔ | OpenAI server URL |
|
||||
| Token | --token | String | ✔ | OpenAI authorization token |
|
||||
| FileName | --name | String | ✔ | File name with extension |
|
||||
| Data | --data | String, BinaryData | ✔ | Path to file or data |
|
||||
| Destination | --purpose | String | ✔ | File purpose: assistants, batch, vision, user_data, evals |
|
||||
| AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | 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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
4
docs/en/md/OpenAI/File-management/_category_.json
vendored
Normal file
4
docs/en/md/OpenAI/File-management/_category_.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "File management",
|
||||
"position": "4"
|
||||
}
|
||||
@@ -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 |
|
||||
| Text | --input | Array Of String | ✔ | String or array of request strings |
|
||||
|
||||
@@ -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 |
|
||||
| Messages | --msgs | String, Array of String | ✔ | Conversation messages. See GetMessageStructure |
|
||||
|
||||
Reference in New Issue
Block a user