Skip to main content

codex_convert_proxy/providers/
deepseek.rs

1//! DeepSeek provider implementation.
2
3use crate::providers::trait_::Provider;
4use std::any::Any;
5
6#[derive(Clone)]
7/// DeepSeek provider.
8///
9/// DeepSeek is mostly compatible with standard Chat API.
10/// Minimal transformation needed - all trait methods use default implementations.
11pub struct DeepSeekProvider;
12
13impl Default for DeepSeekProvider {
14    fn default() -> Self {
15        Self
16    }
17}
18
19impl DeepSeekProvider {
20    pub fn new() -> Self {
21        Self
22    }
23}
24
25impl Provider for DeepSeekProvider {
26    fn name(&self) -> &'static str {
27        "deepseek"
28    }
29
30    fn as_any(&self) -> &dyn Any {
31        self
32    }
33
34    fn clone_box(&self) -> Box<dyn Provider + Send + Sync> {
35        Box::new(self.clone())
36    }
37}