You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-08-10 22:41:43 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
Audio = "C:\Users\bayse\AppData\Local\Temp\v8_D761_68.wav";
|
Audio = "C:\Users\bayse\AppData\Local\Temp\v8_6AB6_36.wav";
|
||||||
Model = "whisper-1";
|
Model = "whisper-1";
|
||||||
|
|
||||||
Result = OPI_OpenAI.CreateTranscription(URL, Token, Model, Audio, "audio/wav");
|
Result = OPI_OpenAI.CreateTranscription(URL, Token, Model, Audio, "audio/wav");
|
||||||
|
2
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
2
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
AssistantID = "asst_7";
|
AssistantID = "asst_14";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
|
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
|
||||||
|
2
docs/en/examples/OpenAI/DeleteFile.txt
vendored
2
docs/en/examples/OpenAI/DeleteFile.txt
vendored
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
|
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
|
||||||
|
2
docs/en/examples/OpenAI/DownloadFile.txt
vendored
2
docs/en/examples/OpenAI/DownloadFile.txt
vendored
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
|
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
|
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
Image = "file-8";
|
Image = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
AssistantID = "asst_7";
|
AssistantID = "asst_14";
|
||||||
|
|
||||||
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
||||||
|
@@ -37,7 +37,7 @@ Method at API documentation: [Delete assistant](https://platform.openai.com/docs
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
AssistantID = "asst_7";
|
AssistantID = "asst_14";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
|
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ Method at API documentation: [Retrieve assistant](https://platform.openai.com/do
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
AssistantID = "asst_7";
|
AssistantID = "asst_14";
|
||||||
|
|
||||||
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
||||||
```
|
```
|
||||||
|
@@ -42,7 +42,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
Audio = "C:\Users\bayse\AppData\Local\Temp\v8_D761_68.wav";
|
Audio = "C:\Users\bayse\AppData\Local\Temp\v8_6AB6_36.wav";
|
||||||
Model = "whisper-1";
|
Model = "whisper-1";
|
||||||
|
|
||||||
Result = OPI_OpenAI.CreateTranscription(URL, Token, Model, Audio, "audio/wav");
|
Result = OPI_OpenAI.CreateTranscription(URL, Token, Model, Audio, "audio/wav");
|
||||||
|
@@ -37,7 +37,7 @@ Method at API documentation: [Delete file](https://platform.openai.com/docs/api-
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
|
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ Method at API documentation: [Retrieve file content](https://platform.openai.com
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
|
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ Method at API documentation: [Retrieve file](https://platform.openai.com/docs/ap
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
|
|
||||||
FileID = "file-8";
|
FileID = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
|
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
|
||||||
```
|
```
|
||||||
|
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
```bsl title="1C:Enterprise/OneScript code example"
|
```bsl title="1C:Enterprise/OneScript code example"
|
||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Token = "12We...";
|
Token = "12We...";
|
||||||
Image = "file-8";
|
Image = "file-15";
|
||||||
|
|
||||||
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
||||||
```
|
```
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDАссистента = "asst_7";
|
IDАссистента = "asst_14";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьАссистента(URL, Токен, IDАссистента);
|
Результат = OPI_OpenAI.ПолучитьАссистента(URL, Токен, IDАссистента);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьИнформациюОФайле(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.ПолучитьИнформациюОФайле(URL, Токен, IDФайла);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
Картинка = "file-8";
|
Картинка = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьСтруктуруСообщенияКартинки("user", Картинка, "What is in this image?");
|
Результат = OPI_OpenAI.ПолучитьСтруктуруСообщенияКартинки("user", Картинка, "What is in this image?");
|
||||||
|
2
docs/ru/examples/OpenAI/СкачатьФайл.txt
vendored
2
docs/ru/examples/OpenAI/СкачатьФайл.txt
vendored
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.СкачатьФайл(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.СкачатьФайл(URL, Токен, IDФайла);
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
Аудио = "C:\Users\bayse\AppData\Local\Temp\v8_D761_68.wav";
|
Аудио = "C:\Users\bayse\AppData\Local\Temp\v8_6AB6_36.wav";
|
||||||
Модель = "whisper-1";
|
Модель = "whisper-1";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.СоздатьТранскрипцию(URL, Токен, Модель, Аудио, "audio/wav");
|
Результат = OPI_OpenAI.СоздатьТранскрипцию(URL, Токен, Модель, Аудио, "audio/wav");
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDАссистента = "asst_7";
|
IDАссистента = "asst_14";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.УдалитьАссистента(URL, Токен, IDАссистента);
|
Результат = OPI_OpenAI.УдалитьАссистента(URL, Токен, IDАссистента);
|
||||||
|
2
docs/ru/examples/OpenAI/УдалитьФайл.txt
vendored
2
docs/ru/examples/OpenAI/УдалитьФайл.txt
vendored
@@ -1,6 +1,6 @@
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.УдалитьФайл(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.УдалитьФайл(URL, Токен, IDФайла);
|
||||||
|
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDАссистента = "asst_7";
|
IDАссистента = "asst_14";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.УдалитьАссистента(URL, Токен, IDАссистента);
|
Результат = OPI_OpenAI.УдалитьАссистента(URL, Токен, IDАссистента);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDАссистента = "asst_7";
|
IDАссистента = "asst_14";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьАссистента(URL, Токен, IDАссистента);
|
Результат = OPI_OpenAI.ПолучитьАссистента(URL, Токен, IDАссистента);
|
||||||
```
|
```
|
||||||
|
@@ -42,7 +42,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
Аудио = "C:\Users\bayse\AppData\Local\Temp\v8_D761_68.wav";
|
Аудио = "C:\Users\bayse\AppData\Local\Temp\v8_6AB6_36.wav";
|
||||||
Модель = "whisper-1";
|
Модель = "whisper-1";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.СоздатьТранскрипцию(URL, Токен, Модель, Аудио, "audio/wav");
|
Результат = OPI_OpenAI.СоздатьТранскрипцию(URL, Токен, Модель, Аудио, "audio/wav");
|
||||||
|
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.УдалитьФайл(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.УдалитьФайл(URL, Токен, IDФайла);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.СкачатьФайл(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.СкачатьФайл(URL, Токен, IDФайла);
|
||||||
```
|
```
|
||||||
|
@@ -37,7 +37,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
|
|
||||||
IDФайла = "file-8";
|
IDФайла = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьИнформациюОФайле(URL, Токен, IDФайла);
|
Результат = OPI_OpenAI.ПолучитьИнформациюОФайле(URL, Токен, IDФайла);
|
||||||
```
|
```
|
||||||
|
@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
|
|||||||
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
```bsl title="Пример использования для 1С:Предприятие/OneScript"
|
||||||
URL = "https://hut.openintegrations.dev/localai/";
|
URL = "https://hut.openintegrations.dev/localai/";
|
||||||
Токен = "12We...";
|
Токен = "12We...";
|
||||||
Картинка = "file-8";
|
Картинка = "file-15";
|
||||||
|
|
||||||
Результат = OPI_OpenAI.ПолучитьСтруктуруСообщенияКартинки("user", Картинка, "What is in this image?");
|
Результат = OPI_OpenAI.ПолучитьСтруктуруСообщенияКартинки("user", Картинка, "What is in this image?");
|
||||||
```
|
```
|
||||||
|
@@ -37,4 +37,9 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Результат"
|
||||||
|
{
|
||||||
|
"role": "system",
|
||||||
|
"content": "What is 1C:Enterprise?"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
@@ -38,4 +38,10 @@ import TabItem from '@theme/TabItem';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```json title="Результат"
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content": "What is 1C:Enterprise?",
|
||||||
|
"name": "Vitaly"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
16740
service/dictionaries/en.json
vendored
16740
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user