pub struct DefaultConfig {
pub max_output_tokens: usize,
pub input_context: usize,
}Expand description
Default fallback configuration for a provider.
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 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