View Source OpenAi.Embeddings (OpenAI REST API Client v1.0.0)
Provides API endpoint related to embeddings
Summary
Functions
Creates an embedding vector representing the input text.
Functions
@spec create_embedding(body :: OpenAi.Embedding.CreateRequest.t(), opts :: keyword()) :: {:ok, OpenAi.Embedding.CreateResponse.t()} | {:error, OpenAi.Error.error()}
Creates an embedding vector representing the input text.