pub enum Model {
DeepseekChat,
DeepseekReasoner,
Custom(String),
}Expand description
The model to use for a chat completion request.
Use Model::DeepseekChat or Model::DeepseekReasoner for the standard
DeepSeek models, or Model::Custom to pass any model string directly —
useful for OpenAI-compatible providers or future DeepSeek models that have
not yet been added as named variants.
§Examples
use ds_api::raw::Model;
let m = Model::DeepseekChat;
let m = Model::Custom("gpt-4o".to_string());Variants§
DeepseekChat
deepseek-chat — fast, general-purpose DeepSeek model.
DeepseekReasoner
deepseek-reasoner — DeepSeek model optimised for deep reasoning.
Custom(String)
Any other model identifier, passed through as-is.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.