pub struct ModelConfig { /* private fields */ }Expand description
How one model is served: the default_backend used when the request does not
pin a wire format, plus any other_backends reachable over additional formats.
Implementations§
Source§impl ModelConfig
impl ModelConfig
Sourcepub fn new(
model_name: impl Into<ModelId>,
default_backend: Backend,
other_backends: Option<Vec<Backend>>,
) -> Self
pub fn new( model_name: impl Into<ModelId>, default_backend: Backend, other_backends: Option<Vec<Backend>>, ) -> Self
A model named model_name served by default_backend, optionally reachable
over additional wire formats via other_backends.
Sourcepub fn with_responses_reasoning(self, policy: ResponsesReasoningPolicy) -> Self
pub fn with_responses_reasoning(self, policy: ResponsesReasoningPolicy) -> Self
Sets how Responses reasoning items are replayed to this model.
Trait Implementations§
Source§impl Clone for ModelConfig
impl Clone for ModelConfig
Source§fn clone(&self) -> ModelConfig
fn clone(&self) -> ModelConfig
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 moreAuto Trait Implementations§
impl Freeze for ModelConfig
impl RefUnwindSafe for ModelConfig
impl Send for ModelConfig
impl Sync for ModelConfig
impl Unpin for ModelConfig
impl UnsafeUnpin for ModelConfig
impl UnwindSafe for ModelConfig
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