pub struct Client {
pub base_url: String,
pub api_key: String,
/* private fields */
}Fields§
§base_url: String§api_key: StringImplementations§
Source§impl Client
impl Client
pub fn new(api_key: &str) -> Self
pub fn from_env() -> Self
pub fn from_url(api_key: &str, base_url: &str) -> Self
Sourcepub fn completion_model(&self, model_name: &str) -> DeepSeekCompletionModel
pub fn completion_model(&self, model_name: &str) -> DeepSeekCompletionModel
Creates a DeepSeek completion model with the given model_name.
Sourcepub fn agent(&self, model_name: &str) -> AgentBuilder<DeepSeekCompletionModel>
pub fn agent(&self, model_name: &str) -> AgentBuilder<DeepSeekCompletionModel>
Optionally add an agent() convenience:
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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