| 17 | |
| 18 | impl DeepSeekProvider { |
| 19 | pub fn new(api_key: impl Into<String>) -> Self { |
| 20 | Self { |
| 21 | client: Client::new(), |
| 22 | api_key: api_key.into(), |
| 23 | models: vec![ |
| 24 | ModelInfo { |
| 25 | id: "deepseek-chat".to_string(), |
| 26 | name: "DeepSeek Chat".to_string(), |
| 27 | provider: "deepseek".to_string(), |
| 28 | context_window: 64000, |
| 29 | max_output_tokens: 8192, |
| 30 | supports_vision: false, |
| 31 | supports_tools: true, |
| 32 | cost_per_million_input: 0.27, |
| 33 | cost_per_million_output: 1.1, |
| 34 | }, |
| 35 | ModelInfo { |
| 36 | id: "deepseek-reasoner".to_string(), |
| 37 | name: "DeepSeek Reasoner".to_string(), |
| 38 | provider: "deepseek".to_string(), |
| 39 | context_window: 64000, |
| 40 | max_output_tokens: 8192, |
| 41 | supports_vision: false, |
| 42 | supports_tools: false, |
| 43 | cost_per_million_input: 0.55, |
| 44 | cost_per_million_output: 2.19, |
| 45 | }, |
| 46 | ], |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | #[async_trait] |