| 17 | |
| 18 | impl TogetherProvider { |
| 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/Llama-3.3-70B-Instruct-Turbo".to_string(), |
| 26 | name: "Llama 3.3 70B (Together)".to_string(), |
| 27 | provider: "together".to_string(), |
| 28 | context_window: 131072, |
| 29 | max_output_tokens: 8192, |
| 30 | supports_vision: false, |
| 31 | supports_tools: true, |
| 32 | cost_per_million_input: 0.88, |
| 33 | cost_per_million_output: 0.88, |
| 34 | }, |
| 35 | ModelInfo { |
| 36 | id: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo".to_string(), |
| 37 | name: "Llama 3.2 90B Vision (Together)".to_string(), |
| 38 | provider: "together".to_string(), |
| 39 | context_window: 131072, |
| 40 | max_output_tokens: 8192, |
| 41 | supports_vision: true, |
| 42 | supports_tools: true, |
| 43 | cost_per_million_input: 0.88, |
| 44 | cost_per_million_output: 0.88, |
| 45 | }, |
| 46 | ModelInfo { |
| 47 | id: "mistralai/Mixtral-8x7B-Instruct-v0.1".to_string(), |
| 48 | name: "Mixtral 8x7B (Together)".to_string(), |
| 49 | provider: "together".to_string(), |
| 50 | context_window: 32768, |
| 51 | max_output_tokens: 4096, |
| 52 | supports_vision: false, |
| 53 | supports_tools: false, |
| 54 | cost_per_million_input: 0.6, |
| 55 | cost_per_million_output: 0.6, |
| 56 | }, |
| 57 | ModelInfo { |
| 58 | id: "Qwen/Qwen2.5-72B-Instruct-Turbo".to_string(), |
| 59 | name: "Qwen 2.5 72B (Together)".to_string(), |
| 60 | provider: "together".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.88, |
| 66 | cost_per_million_output: 0.88, |
| 67 | }, |
| 68 | ModelInfo { |
| 69 | id: "deepseek-ai/DeepSeek-V3".to_string(), |
| 70 | name: "DeepSeek V3 (Together)".to_string(), |
| 71 | provider: "together".to_string(), |
| 72 | context_window: 131072, |
| 73 | max_output_tokens: 8192, |
| 74 | supports_vision: false, |
| 75 | supports_tools: true, |
| 76 | cost_per_million_input: 1.25, |