1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/Ollama/GetEmbeddings.txt
Vitaly the Alpaca (bot) 43ecdb9b78 Main build (Jenkins)
2025-05-01 23:28:11 +03:00

14 lines
469 B
Plaintext
Vendored

URL = "https://api.athenaeum.digital/ollama";
Token = "10KO-82..."; // Authorization - not part API Ollama
StingsArray = New Array;
StingsArray.Add("Why is the sky blue?");
StingsArray.Add("Why is the grass green?");
Model = "tinyllama";
AdditionalHeaders = New Map;
AdditionalHeaders.Insert("Authorization", StrTemplate("Bearer %1", Token));
Result = OPI_Ollama.GetEmbeddings(URL, Model, StingsArray, , AdditionalHeaders);