1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-03 22:39:12 +02:00
Files
OpenIntegrations/docs/en/examples/OpenAI/UploadFile.txt

10 lines
340 B
Plaintext
Raw Normal View History

2025-10-20 19:41:52 +03:00
 URL = FunctionParameters["OpenAI_URL"];
Token = FunctionParameters["OpenAI_Token"];
2025-06-07 18:34:45 +03:00
2025-10-20 19:41:52 +03:00
File = FunctionParameters["Picture"]; // URL, Path or Binary Data
2025-06-13 08:51:43 +03:00
FileName = StrTemplate("%1.png", String(New UUID()));
2025-06-07 18:34:45 +03:00
Destination = "assistants";
Result = OPI_OpenAI.UploadFile(URL, Token, FileName, File, Destination);