| 40 | } |
| 41 | |
| 42 | pub fn with_config(config: VertexConfig) -> Self { |
| 43 | let models = vec![ |
| 44 | ModelInfo { |
| 45 | id: "gemini-2.0-flash".to_string(), |
| 46 | name: "Gemini 2.0 Flash (Vertex)".to_string(), |
| 47 | provider: "google-vertex".to_string(), |
| 48 | context_window: 1_000_000, |
| 49 | max_output_tokens: 8192, |
| 50 | supports_vision: true, |
| 51 | supports_tools: true, |
| 52 | cost_per_million_input: 0.1, |
| 53 | cost_per_million_output: 0.4, |
| 54 | }, |
| 55 | ModelInfo { |
| 56 | id: "gemini-2.0-flash-lite".to_string(), |
| 57 | name: "Gemini 2.0 Flash Lite (Vertex)".to_string(), |
| 58 | provider: "google-vertex".to_string(), |
| 59 | context_window: 1_000_000, |
| 60 | max_output_tokens: 8192, |
| 61 | supports_vision: true, |
| 62 | supports_tools: true, |
| 63 | cost_per_million_input: 0.075, |
| 64 | cost_per_million_output: 0.3, |
| 65 | }, |
| 66 | ModelInfo { |
| 67 | id: "gemini-1.5-pro".to_string(), |
| 68 | name: "Gemini 1.5 Pro (Vertex)".to_string(), |
| 69 | provider: "google-vertex".to_string(), |
| 70 | context_window: 2_000_000, |
| 71 | max_output_tokens: 8192, |
| 72 | supports_vision: true, |
| 73 | supports_tools: true, |
| 74 | cost_per_million_input: 1.25, |
| 75 | cost_per_million_output: 5.0, |
| 76 | }, |
| 77 | ModelInfo { |
| 78 | id: "gemini-1.5-flash".to_string(), |
| 79 | name: "Gemini 1.5 Flash (Vertex)".to_string(), |
| 80 | provider: "google-vertex".to_string(), |
| 81 | context_window: 1_000_000, |
| 82 | max_output_tokens: 8192, |
| 83 | supports_vision: true, |
| 84 | supports_tools: true, |
| 85 | cost_per_million_input: 0.075, |
| 86 | cost_per_million_output: 0.3, |
| 87 | }, |
| 88 | ModelInfo { |
| 89 | id: "gemini-1.0-pro".to_string(), |
| 90 | name: "Gemini 1.0 Pro (Vertex)".to_string(), |
| 91 | provider: "google-vertex".to_string(), |
| 92 | context_window: 32_000, |
| 93 | max_output_tokens: 2048, |
| 94 | supports_vision: false, |
| 95 | supports_tools: true, |
| 96 | cost_per_million_input: 0.5, |
| 97 | cost_per_million_output: 1.5, |
| 98 | }, |
| 99 | ]; |