pub struct DefaultConfig {
pub max_output_tokens: usize,
pub input_context: usize,
}Expand description
Provider-wide fallback limits used when a requested identifier does not
match any ModelSpec.
ModelRegistry::get_max_output_tokens and
ModelRegistry::get_input_context consult these values whenever the
caller passes an identifier the registry has not seen — typically a
brand-new model the embedded catalog has not yet been updated for, but
whose provider can still be inferred from the identifier shape. If the
provider itself cannot be inferred, an ultimate hard-coded fallback in
this module applies instead.
Fields§
§max_output_tokens: usizeDefault maximum output tokens for unknown models from this provider.
input_context: usizeDefault input context limit for unknown models from this provider.
Trait Implementations§
Source§impl Clone for DefaultConfig
impl Clone for DefaultConfig
Source§fn clone(&self) -> DefaultConfig
fn clone(&self) -> DefaultConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultConfig
impl Debug for DefaultConfig
Source§impl<'de> Deserialize<'de> for DefaultConfig
impl<'de> Deserialize<'de> for DefaultConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DefaultConfig
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnsafeUnpin for DefaultConfig
impl UnwindSafe for DefaultConfig
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