struct

AI::OpenAI::OpenAIEmbeddingProviderOptions

Inherits JSON::Serializable < Struct < Value < Object

Provider-specific options for OpenAI embedding models.

These options can be passed via provider_options["openai"] in the embedding call options.

Constructors

new(dimensions : Int32 | Nil = nil, user : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

dimensions

The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.

Source
user

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.

Source