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

Link to this function

create_embedding(body, opts \\ [])

View Source
@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.