1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/OpenAI/UploadFile.txt

10 lines
353 B
Plaintext
Raw Normal View History

2025-06-29 14:35:33 +03:00
 URL = "https://hut.openintegrations.dev/localai/";
Token = "12We...";
2025-06-07 18:34:45 +03:00
2025-06-29 14:35:33 +03:00
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // 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);