pub struct DeepSeekConfig {
pub api_key: String,
pub model: String,
pub max_tokens: u32,
pub temperature: f32,
}
Expand description
Configuration for DeepSeek client
Fields§
§api_key: String
§model: String
§max_tokens: u32
§temperature: f32
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 Default for DeepSeekConfig
impl Default for DeepSeekConfig
Source§impl KeyFromEnv for DeepSeekConfig
impl KeyFromEnv for DeepSeekConfig
Source§const KEY_NAME: &'static str = "DEEPSEEK_API_KEY"
const KEY_NAME: &'static str = "DEEPSEEK_API_KEY"
The environment variable name for this client’s API key
Source§fn find_key() -> Option<String>
fn find_key() -> Option<String>
Find the API key by checking environment variables first, then .env file
Source§fn find_key_with_user() -> String
fn find_key_with_user() -> String
Find the API key with user fallback - waits 15 seconds for user input then panics
Source§fn prompt_save_to_env() -> bool
fn prompt_save_to_env() -> bool
Prompt user if they want to save the API key to .env file
Uses single keystroke detection with fallback to Enter
Auto Trait Implementations§
impl Freeze for DeepSeekConfig
impl RefUnwindSafe for DeepSeekConfig
impl Send for DeepSeekConfig
impl Sync for DeepSeekConfig
impl Unpin 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