You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
Main build (Jenkins)
This commit is contained in:
4
docs/en/examples/OpenAI/CreateAssistant.txt
vendored
4
docs/en/examples/OpenAI/CreateAssistant.txt
vendored
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Instruction = "You are a personal math tutor. When asked a question, write and run Python code to answer the question.";
|
||||
Model = "smolvlm-256m-instruct";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Audio = "C:\Users\bayse\AppData\Local\Temp\v8_1649_1f.wav";
|
||||
Audio = FunctionParameters["OpenAI_Speech"];
|
||||
Model = "whisper-1";
|
||||
|
||||
Result = OPI_OpenAI.CreateTranscription(URL, Token, Model, Audio, "audio/wav");
|
||||
|
||||
6
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
6
docs/en/examples/OpenAI/DeleteAssistant.txt
vendored
@@ -1,6 +1,6 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
AssistantID = "asst_2";
|
||||
AssistantID = FunctionParameters["OpenAI_Assistant"];
|
||||
|
||||
Result = OPI_OpenAI.DeleteAssistant(URL, Token, AssistantID);
|
||||
|
||||
6
docs/en/examples/OpenAI/DeleteFile.txt
vendored
6
docs/en/examples/OpenAI/DeleteFile.txt
vendored
@@ -1,6 +1,6 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
FileID = "file-3";
|
||||
FileID = FunctionParameters["OpenAI_File"];
|
||||
|
||||
Result = OPI_OpenAI.DeleteFile(URL, Token, FileID);
|
||||
|
||||
6
docs/en/examples/OpenAI/DownloadFile.txt
vendored
6
docs/en/examples/OpenAI/DownloadFile.txt
vendored
@@ -1,6 +1,6 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
FileID = "file-3";
|
||||
FileID = FunctionParameters["OpenAI_File"];
|
||||
|
||||
Result = OPI_OpenAI.DownloadFile(URL, Token, FileID);
|
||||
|
||||
4
docs/en/examples/OpenAI/GenerateSpeech.txt
vendored
4
docs/en/examples/OpenAI/GenerateSpeech.txt
vendored
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Text = "Attack ships on fire off the shoulder of Orion bright as magnesium";
|
||||
Model = "bark-cpp-small";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Count = 2;
|
||||
AdditionalParameters = New Structure("after,order", "asst_2", "desc");
|
||||
|
||||
4
docs/en/examples/OpenAI/GetEmbeddings.txt
vendored
4
docs/en/examples/OpenAI/GetEmbeddings.txt
vendored
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Text = "What is 1C:Enterprise?";
|
||||
Model = "arcee-ai_afm-4.5b";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
FileID = "file-3";
|
||||
FileID = FunctionParameters["OpenAI_File"];
|
||||
|
||||
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
|
||||
|
||||
4
docs/en/examples/OpenAI/GetFilesList.txt
vendored
4
docs/en/examples/OpenAI/GetFilesList.txt
vendored
@@ -1,4 +1,4 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Result = OPI_OpenAI.GetFilesList(URL, Token);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
Image = "file-3";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
Image = FunctionParameters["OpenAI_File"];
|
||||
|
||||
Result = OPI_OpenAI.GetImageMessageStructure("user", Image, "What is in this image?");
|
||||
|
||||
4
docs/en/examples/OpenAI/GetImages.txt
vendored
4
docs/en/examples/OpenAI/GetImages.txt
vendored
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Model = "sd-1.5-ggml";
|
||||
Description = OPI_OpenAI.GetImageDescriptionStructure("Yellow alpaca", 1, , "64x64");
|
||||
|
||||
4
docs/en/examples/OpenAI/GetModelList.txt
vendored
4
docs/en/examples/OpenAI/GetModelList.txt
vendored
@@ -1,4 +1,4 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
Result = OPI_OpenAI.GetModelList(URL, Token);
|
||||
|
||||
6
docs/en/examples/OpenAI/GetResponse.txt
vendored
6
docs/en/examples/OpenAI/GetResponse.txt
vendored
@@ -1,5 +1,5 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
// Text messages
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Pictures
|
||||
|
||||
Model = "moondream2-20250414";
|
||||
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
||||
FileName = StrTemplate("%1.png", String(New UUID()));
|
||||
Destination = "user_data";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
AssistantID = "asst_2";
|
||||
AssistantID = FunctionParameters["OpenAI_Assistant"];
|
||||
|
||||
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
|
||||
|
||||
6
docs/en/examples/OpenAI/UploadFile.txt
vendored
6
docs/en/examples/OpenAI/UploadFile.txt
vendored
@@ -1,7 +1,7 @@
|
||||
URL = "https://hut.openintegrations.dev/localai/";
|
||||
Token = "12We...";
|
||||
URL = FunctionParameters["OpenAI_URL"];
|
||||
Token = FunctionParameters["OpenAI_Token"];
|
||||
|
||||
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
||||
|
||||
FileName = StrTemplate("%1.png", String(New UUID()));
|
||||
Destination = "assistants";
|
||||
|
||||
Reference in New Issue
Block a user