pub struct EmbeddingLimits {
pub per_execution_tokens: u64,
pub max_held_tokens: u64,
pub max_requests: u64,
pub max_texts_per_call: u64,
pub max_bytes_per_call: u64,
}Expand description
The ceilings an embedding call is checked against.
Concurrency per call is deliberately not here: it is how a provider fans out its sub-batches, so it lives in the provider’s configuration.
Fields§
§per_execution_tokens: u64§max_held_tokens: u64§max_requests: u64§max_texts_per_call: u64§max_bytes_per_call: u64Trait Implementations§
Source§impl Clone for EmbeddingLimits
impl Clone for EmbeddingLimits
impl Copy for EmbeddingLimits
Source§impl Debug for EmbeddingLimits
impl Debug for EmbeddingLimits
Source§impl Default for EmbeddingLimits
impl Default for EmbeddingLimits
impl Eq for EmbeddingLimits
Source§impl PartialEq for EmbeddingLimits
impl PartialEq for EmbeddingLimits
impl StructuralPartialEq for EmbeddingLimits
Auto Trait Implementations§
impl Freeze for EmbeddingLimits
impl RefUnwindSafe for EmbeddingLimits
impl Send for EmbeddingLimits
impl Sync for EmbeddingLimits
impl Unpin for EmbeddingLimits
impl UnsafeUnpin for EmbeddingLimits
impl UnwindSafe for EmbeddingLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.