pub struct TogetherConfig {
pub api_key: String,
pub model: String,
pub max_tokens: Option<u32>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub stop: Option<Vec<String>>,
}Fields§
§api_key: String§model: String§max_tokens: Option<u32>§temperature: Option<f64>§top_p: Option<f64>§stop: Option<Vec<String>>Implementations§
Source§impl TogetherConfig
impl TogetherConfig
pub fn new(api_key: impl Into<String>, model: TogetherModel) -> Self
pub fn new_custom(api_key: impl Into<String>, model: impl Into<String>) -> Self
pub fn with_max_tokens(self, v: u32) -> Self
pub fn with_temperature(self, v: f64) -> Self
pub fn with_top_p(self, v: f64) -> Self
pub fn with_stop(self, v: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for TogetherConfig
impl Clone for TogetherConfig
Source§fn clone(&self) -> TogetherConfig
fn clone(&self) -> TogetherConfig
Returns a duplicate 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 TogetherConfig
impl Debug for TogetherConfig
Source§impl From<TogetherConfig> for OpenAiConfig
impl From<TogetherConfig> for OpenAiConfig
Source§fn from(c: TogetherConfig) -> Self
fn from(c: TogetherConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TogetherConfig
impl RefUnwindSafe for TogetherConfig
impl Send for TogetherConfig
impl Sync for TogetherConfig
impl Unpin for TogetherConfig
impl UnsafeUnpin for TogetherConfig
impl UnwindSafe for TogetherConfig
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