OpenAi.Embeddings (OpenAI REST API Client v0.2.1)
Provides API endpoint related to embeddings
Summary
Functions
Creates an embedding vector representing the input text.
Functions
Link to this function
create_embedding(body, opts \\ [])
@spec create_embedding( OpenAi.Embedding.CreateRequest.t(), keyword() ) :: {:ok, OpenAi.Embedding.CreateResponse.t()} | {:error, OpenAi.Error.error()}
Creates an embedding vector representing the input text.