Skip to main content

EmbeddingModel

Type Alias EmbeddingModel 

Source
pub type EmbeddingModel<H = Client> = GenericEmbeddingModel<OpenAIResponsesExt, H>;
Expand description

The embedding model struct for OpenAI’s Embeddings API.

This preserves the historical public generic shape where the first generic parameter is the HTTP client type.

Aliased Type§

pub struct EmbeddingModel<H = Client> {
    pub model: String,
    pub encoding_format: Option<EncodingFormat>,
    pub user: Option<String>,
    /* private fields */
}

Fields§

§model: String§encoding_format: Option<EncodingFormat>§user: Option<String>