pub struct EmbeddingModelInfo {
pub id: &'static str,
pub provider: &'static str,
pub dimensions: usize,
pub max_tokens: usize,
pub pricing_per_1k: f64,
pub supports_dimensions: bool,
}Expand description
Information about an embedding model.
Fields§
§id: &'static strModel ID/name.
provider: &'static strProvider that offers this model.
dimensions: usizeDefault output dimensions.
max_tokens: usizeMaximum input tokens.
pricing_per_1k: f64Price per 1K tokens (USD).
supports_dimensions: boolWhether the model supports dimension reduction.
Trait Implementations§
Source§impl Clone for EmbeddingModelInfo
impl Clone for EmbeddingModelInfo
Source§fn clone(&self) -> EmbeddingModelInfo
fn clone(&self) -> EmbeddingModelInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddingModelInfo
impl RefUnwindSafe for EmbeddingModelInfo
impl Send for EmbeddingModelInfo
impl Sync for EmbeddingModelInfo
impl Unpin for EmbeddingModelInfo
impl UnwindSafe for EmbeddingModelInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more