We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70f44d commit 5935334Copy full SHA for 5935334
src/OpenAI.jl
@@ -417,7 +417,20 @@ function create_embeddings(api_key::String,
417
input,
418
kwargs...)
419
end
420
-
+function create_embeddings(provider::AbstractOpenAIProvider,
421
+ input;
422
+ model_id::String = DEFAULT_EMBEDDING_MODEL_ID,
423
+ http_kwargs::NamedTuple=NamedTuple(),
424
+ streamcallback=nothing,
425
+ kwargs...)
426
+ return OpenAI.openai_request("embeddings",
427
+ provider;
428
+ method="POST",
429
+ http_kwargs=http_kwargs,
430
+ model=model_id,
431
+ input,
432
433
+end
434
"""
435
Create images
436
0 commit comments