struct
AI::OpenAI::OpenAIEmbeddingProviderOptions
- AI::OpenAI::OpenAIEmbeddingProviderOptions
- Struct
- Value
- Object
Overview
Provider-specific options for OpenAI embedding models.
These options can be passed via provider_options["openai"] in the
embedding call options.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/embedding/openai_embedding_options.crConstructors
- .new(pull : JSON::PullParser)
- .new(dimensions : Int32 | Nil = nil, user : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#dimensions : Int32 | Nil
The number of dimensions the resulting output embeddings should have.
-
#user : String | Nil
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Constructor Detail
Instance Method Detail
def dimensions : Int32 | Nil
#
The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
def user : String | Nil
#
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.