1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-02 20:52:28 +02:00
Files
OpenIntegrations/docs/en/examples/OpenAI/UploadFile.txt
T
Vitaly the Alpaca (bot) c25ed70ac3 Main build (Jenkins)
2026-02-13 14:09:07 +03:00

9 lines
349 B
Plaintext
Vendored

URL = "https://hut.openintegrations.dev/localai/";
Token = "12We...";
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);