| 17 | |
| 18 | impl DeepInfraProvider { |
| 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: "meta-llama/Meta-Llama-3-70B-Instruct".to_string(), |
| 26 | name: "Llama 3 70B (DeepInfra)".to_string(), |
| 27 | provider: "deepinfra".to_string(), |
| 28 | context_window: 8192, |
| 29 | max_output_tokens: 4096, |
| 30 | supports_vision: false, |
| 31 | supports_tools: true, |
| 32 | cost_per_million_input: 0.59, |
| 33 | cost_per_million_output: 0.79, |
| 34 | }, |
| 35 | ModelInfo { |
| 36 | id: "meta-llama/Llama-3.3-70B-Instruct".to_string(), |
| 37 | name: "Llama 3.3 70B (DeepInfra)".to_string(), |
| 38 | provider: "deepinfra".to_string(), |
| 39 | context_window: 128000, |
| 40 | max_output_tokens: 8192, |
| 41 | supports_vision: false, |
| 42 | supports_tools: true, |
| 43 | cost_per_million_input: 0.35, |
| 44 | cost_per_million_output: 0.40, |
| 45 | }, |
| 46 | ModelInfo { |
| 47 | id: "mistralai/Mistral-Small-24B-Instruct-2501".to_string(), |
| 48 | name: "Mistral Small 24B (DeepInfra)".to_string(), |
| 49 | provider: "deepinfra".to_string(), |
| 50 | context_window: 32768, |
| 51 | max_output_tokens: 8192, |
| 52 | supports_vision: false, |
| 53 | supports_tools: true, |
| 54 | cost_per_million_input: 0.10, |
| 55 | cost_per_million_output: 0.10, |
| 56 | }, |
| 57 | ModelInfo { |
| 58 | id: "Qwen/Qwen2.5-72B-Instruct".to_string(), |
| 59 | name: "Qwen 2.5 72B (DeepInfra)".to_string(), |
| 60 | provider: "deepinfra".to_string(), |
| 61 | context_window: 32768, |
| 62 | max_output_tokens: 8192, |
| 63 | supports_vision: false, |
| 64 | supports_tools: true, |
| 65 | cost_per_million_input: 0.35, |
| 66 | cost_per_million_output: 0.40, |
| 67 | }, |
| 68 | ], |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | #[async_trait] |