1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-18 05:04:13 +02:00
Files
OpenIntegrations/docs/en/examples/OpenAI/UploadFile.txt
T
Vitaly the Alpaca (bot) 6f53f23296 Main build (Jenkins)
2026-03-24 16:01:34 +03:00

9 lines
351 B
Plaintext
Vendored

URL = "https://hut.openintegrations.dev/localai/";
Token = "12We34...";
File = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
FileName = StrTemplate("%1.png", String(New UUID()));
Destination = "assistants";
Result = OPI_OpenAI.UploadFile(URL, Token, FileName, File, Destination);