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