pub struct ModelSettings {
pub models: Vec<String>,
pub temperature: f32,
}
Fields§
§models: Vec<String>
The name of the models to use, in order.
This is a Vec
because the user might want to start with a weaker model and upgrade to a stronger one after a few validation failures.
If you just want to use a single model for all requests, just provide vec![model; count]
.
temperature: f32
Corresponds to the OpenAI temperature
parameter.
Trait Implementations§
Source§impl Clone for ModelSettings
impl Clone for ModelSettings
Source§fn clone(&self) -> ModelSettings
fn clone(&self) -> ModelSettings
Returns a copy 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 moreSource§impl Debug for ModelSettings
impl Debug for ModelSettings
Auto Trait Implementations§
impl Freeze for ModelSettings
impl RefUnwindSafe for ModelSettings
impl Send for ModelSettings
impl Sync for ModelSettings
impl Unpin for ModelSettings
impl UnwindSafe for ModelSettings
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