View Source OpenAI.Embeddings (OpenAI API Wrapper v0.1.3)
Provides the ability to interact with the OpenAI embeddings API.
See the OpenAI embeddings API documentation here.
Link to this section Summary
Functions
Creates an embedding vector representing the input text.
Link to this section Types
@type create_params() :: {:user, binary()}
Link to this section Functions
@spec create(binary(), binary() | [binary()], [create_params()]) :: {:ok, map()} | {:error, OpenAI.Error.t()}
Creates an embedding vector representing the input text.
Max input length is 8192 tokens.