struct

AI::Provider::EmbeddingModel::CallOptions

Inherits JSON::Serializable < Struct < Value < Object

Options for the doEmbed call.

Constructors

new(values : Array(String), provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

headers

Additional HTTP headers to be sent with the request.

Source
provider_options

Additional provider-specific options.

Source
values

List of text values to generate embeddings for.

Source