| 72 | } |
| 73 | |
| 74 | pub fn with_config(config: GitHubCopilotConfig) -> Self { |
| 75 | let models = vec![ |
| 76 | ModelInfo { |
| 77 | id: "gpt-4o".to_string(), |
| 78 | name: "GPT-4o (GitHub Copilot)".to_string(), |
| 79 | provider: "github-copilot".to_string(), |
| 80 | context_window: 128000, |
| 81 | max_output_tokens: 16384, |
| 82 | supports_vision: true, |
| 83 | supports_tools: true, |
| 84 | cost_per_million_input: 0.0, |
| 85 | cost_per_million_output: 0.0, |
| 86 | }, |
| 87 | ModelInfo { |
| 88 | id: "gpt-4o-mini".to_string(), |
| 89 | name: "GPT-4o Mini (GitHub Copilot)".to_string(), |
| 90 | provider: "github-copilot".to_string(), |
| 91 | context_window: 128000, |
| 92 | max_output_tokens: 16384, |
| 93 | supports_vision: true, |
| 94 | supports_tools: true, |
| 95 | cost_per_million_input: 0.0, |
| 96 | cost_per_million_output: 0.0, |
| 97 | }, |
| 98 | ModelInfo { |
| 99 | id: "claude-3.5-sonnet".to_string(), |
| 100 | name: "Claude 3.5 Sonnet (GitHub Copilot)".to_string(), |
| 101 | provider: "github-copilot".to_string(), |
| 102 | context_window: 200000, |
| 103 | max_output_tokens: 8192, |
| 104 | supports_vision: true, |
| 105 | supports_tools: true, |
| 106 | cost_per_million_input: 0.0, |
| 107 | cost_per_million_output: 0.0, |
| 108 | }, |
| 109 | ModelInfo { |
| 110 | id: "claude-3.5-haiku".to_string(), |
| 111 | name: "Claude 3.5 Haiku (GitHub Copilot)".to_string(), |
| 112 | provider: "github-copilot".to_string(), |
| 113 | context_window: 200000, |
| 114 | max_output_tokens: 8192, |
| 115 | supports_vision: true, |
| 116 | supports_tools: true, |
| 117 | cost_per_million_input: 0.0, |
| 118 | cost_per_million_output: 0.0, |
| 119 | }, |
| 120 | ModelInfo { |
| 121 | id: "o1".to_string(), |
| 122 | name: "o1 (GitHub Copilot)".to_string(), |
| 123 | provider: "github-copilot".to_string(), |
| 124 | context_window: 200000, |
| 125 | max_output_tokens: 100000, |
| 126 | supports_vision: true, |
| 127 | supports_tools: false, |
| 128 | cost_per_million_input: 0.0, |
| 129 | cost_per_million_output: 0.0, |
| 130 | }, |
| 131 | ModelInfo { |