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(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
dimensions
The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
user
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.