| 1 | import { ModelProvider } from "../types.js"; |
| 2 | |
| 3 | export const CometAPI: ModelProvider = { |
| 4 | id: "cometapi", |
| 5 | displayName: "CometAPI", |
| 6 | models: [ |
| 7 | // GPT Series |
| 8 | { |
| 9 | model: "gpt-5-chat-latest", |
| 10 | displayName: "GPT-5 Chat Latest", |
| 11 | contextLength: 200000, |
| 12 | maxCompletionTokens: 8192, |
| 13 | description: |
| 14 | "Latest GPT-5 model optimized for chat conversations with enhanced reasoning capabilities.", |
| 15 | recommendedFor: ["chat"], |
| 16 | }, |
| 17 | { |
| 18 | model: "chatgpt-4o-latest", |
| 19 | displayName: "ChatGPT-4o Latest", |
| 20 | contextLength: 128000, |
| 21 | maxCompletionTokens: 4096, |
| 22 | description: |
| 23 | "Latest ChatGPT-4o model with improved performance and updated training data.", |
| 24 | recommendedFor: ["chat"], |
| 25 | }, |
| 26 | { |
| 27 | model: "gpt-5-mini", |
| 28 | displayName: "GPT-5 Mini", |
| 29 | contextLength: 128000, |
| 30 | maxCompletionTokens: 4096, |
| 31 | description: |
| 32 | "Efficient version of GPT-5 with faster response times while maintaining high quality.", |
| 33 | recommendedFor: ["chat"], |
| 34 | }, |
| 35 | { |
| 36 | model: "gpt-5-nano", |
| 37 | displayName: "GPT-5 Nano", |
| 38 | contextLength: 64000, |
| 39 | maxCompletionTokens: 2048, |
| 40 | description: |
| 41 | "Ultra-fast GPT-5 variant optimized for quick responses and simple tasks.", |
| 42 | recommendedFor: ["chat"], |
| 43 | }, |
| 44 | { |
| 45 | model: "gpt-5", |
| 46 | displayName: "GPT-5", |
| 47 | contextLength: 200000, |
| 48 | maxCompletionTokens: 8192, |
| 49 | description: |
| 50 | "Advanced GPT-5 model with state-of-the-art language understanding and generation.", |
| 51 | recommendedFor: ["chat"], |
| 52 | }, |
| 53 | { |
| 54 | model: "gpt-4o-mini", |
| 55 | displayName: "GPT-4o Mini", |
| 56 | contextLength: 128000, |
| 57 | maxCompletionTokens: 4096, |
| 58 | description: |
| 59 | "Compact version of GPT-4o with excellent performance for most use cases.", |
| 60 | recommendedFor: ["chat"], |
| 61 | }, |
| 62 | { |
| 63 | model: "o4-mini-2025-04-16", |
| 64 | displayName: "o4 Mini (2025-04-16)", |
| 65 | contextLength: 128000, |
| 66 | maxCompletionTokens: 4096, |
| 67 | description: |
| 68 | "Optimized o4 mini model with April 2025 training improvements.", |
| 69 | recommendedFor: ["chat"], |
| 70 | }, |
| 71 | { |
| 72 | model: "o3-pro-2025-06-10", |
| 73 | displayName: "o3 Pro (2025-06-10)", |
| 74 | contextLength: 200000, |
| 75 | maxCompletionTokens: 8192, |
| 76 | description: |
| 77 | "Professional-grade o3 model with enhanced reasoning and problem-solving capabilities.", |
| 78 | recommendedFor: ["chat"], |
| 79 | }, |
| 80 | |
| 81 | // Claude Series |
| 82 | { |
| 83 | model: "claude-opus-4-1-20250805", |
| 84 | displayName: "Claude Opus 4.1 (2025-08-05)", |
| 85 | contextLength: 200000, |
| 86 | maxCompletionTokens: 8192, |
| 87 | description: |
| 88 | "Most capable Claude model with exceptional reasoning, analysis, and creative capabilities.", |
| 89 | recommendedFor: ["chat"], |
| 90 | }, |
| 91 | { |
| 92 | model: "claude-opus-4-1-20250805-thinking", |
| 93 | displayName: "Claude Opus 4.1 Thinking (2025-08-05)", |
| 94 | contextLength: 200000, |
| 95 | maxCompletionTokens: 8192, |
| 96 | description: |
| 97 | "Claude Opus with enhanced thinking process for complex problem-solving tasks.", |
| 98 | recommendedFor: ["chat"], |
| 99 | }, |
| 100 | { |
| 101 | model: "claude-sonnet-4-20250514", |
| 102 | displayName: "Claude Sonnet 4 (2025-05-14)", |
| 103 | contextLength: 200000, |
| 104 | maxCompletionTokens: 8192, |
| 105 | description: |
| 106 | "Balanced Claude model offering excellent performance across various tasks.", |
| 107 | recommendedFor: ["chat"], |
| 108 | }, |
| 109 | { |
| 110 | model: "claude-sonnet-4-20250514-thinking", |
| 111 | displayName: "Claude Sonnet 4 Thinking (2025-05-14)", |
| 112 | contextLength: 200000, |
| 113 | maxCompletionTokens: 8192, |
| 114 | description: |
| 115 | "Claude Sonnet with enhanced reasoning capabilities for analytical tasks.", |
| 116 | recommendedFor: ["chat"], |
| 117 | }, |
| 118 | { |
| 119 | model: "claude-3-7-sonnet-latest", |
| 120 | displayName: "Claude 3.7 Sonnet Latest", |
| 121 | contextLength: 200000, |
| 122 | maxCompletionTokens: 4096, |
| 123 | description: |
| 124 | "Latest Claude 3.7 Sonnet with improved instruction following and safety.", |
| 125 | recommendedFor: ["chat"], |
| 126 | }, |
| 127 | { |
| 128 | model: "claude-3-5-haiku-latest", |
| 129 | displayName: "Claude 3.5 Haiku Latest", |
| 130 | contextLength: 200000, |
| 131 | maxCompletionTokens: 4096, |
| 132 | description: |
| 133 | "Fast and efficient Claude model optimized for quick responses.", |
| 134 | recommendedFor: ["chat"], |
| 135 | }, |
| 136 | |
| 137 | // Gemini Series |
| 138 | { |
| 139 | model: "gemini-2.5-pro", |
| 140 | displayName: "Gemini 2.5 Pro", |
| 141 | contextLength: 2000000, |
| 142 | maxCompletionTokens: 8192, |
| 143 | description: |
| 144 | "Advanced Gemini model with extensive context window and multimodal capabilities.", |
| 145 | recommendedFor: ["chat"], |
| 146 | }, |
| 147 | { |
| 148 | model: "gemini-2.5-flash", |
| 149 | displayName: "Gemini 2.5 Flash", |
| 150 | contextLength: 1000000, |
| 151 | maxCompletionTokens: 8192, |
| 152 | description: |
| 153 | "Fast Gemini model with large context window optimized for speed.", |
| 154 | recommendedFor: ["chat"], |
| 155 | }, |
| 156 | { |
| 157 | model: "gemini-2.5-flash-lite", |
| 158 | displayName: "Gemini 2.5 Flash Lite", |
| 159 | contextLength: 1000000, |
| 160 | maxCompletionTokens: 4096, |
| 161 | description: |
| 162 | "Lightweight version of Gemini Flash for efficient processing.", |
| 163 | recommendedFor: ["chat"], |
| 164 | }, |
| 165 | { |
| 166 | model: "gemini-2.0-flash", |
| 167 | displayName: "Gemini 2.0 Flash", |
| 168 | contextLength: 1000000, |
| 169 | maxCompletionTokens: 8192, |
| 170 | description: |
| 171 | "High-performance Gemini model with excellent speed-quality balance.", |
| 172 | recommendedFor: ["chat"], |
| 173 | }, |
| 174 | |
| 175 | // Grok Series |
| 176 | { |
| 177 | model: "grok-4-0709", |
| 178 | displayName: "Grok 4 (07-09)", |
| 179 | contextLength: 128000, |
| 180 | maxCompletionTokens: 4096, |
| 181 | description: |
| 182 | "Latest Grok model with improved reasoning and conversational abilities.", |
| 183 | recommendedFor: ["chat"], |
| 184 | }, |
| 185 | { |
| 186 | model: "grok-3", |
| 187 | displayName: "Grok 3", |
| 188 | contextLength: 128000, |
| 189 | maxCompletionTokens: 4096, |
| 190 | description: |
| 191 | "Advanced Grok model with enhanced understanding and generation capabilities.", |
| 192 | recommendedFor: ["chat"], |
| 193 | }, |
| 194 | { |
| 195 | model: "grok-3-mini", |
| 196 | displayName: "Grok 3 Mini", |
| 197 | contextLength: 64000, |
| 198 | maxCompletionTokens: 2048, |
| 199 | description: |
| 200 | "Compact Grok model optimized for efficiency and quick responses.", |
| 201 | recommendedFor: ["chat"], |
| 202 | }, |
| 203 | { |
| 204 | model: "grok-2-image-1212", |
| 205 | displayName: "Grok 2 Image (12-12)", |
| 206 | contextLength: 128000, |
| 207 | maxCompletionTokens: 4096, |
| 208 | description: |
| 209 | "Grok model with enhanced image understanding and multimodal capabilities.", |
| 210 | recommendedFor: ["chat"], |
| 211 | }, |
| 212 | |
| 213 | // DeepSeek Series |
| 214 | { |
| 215 | model: "deepseek-v3.1", |
| 216 | displayName: "DeepSeek V3.1", |
| 217 | contextLength: 128000, |
| 218 | maxCompletionTokens: 4096, |
| 219 | description: |
| 220 | "Latest DeepSeek model with improved reasoning and coding capabilities.", |
| 221 | recommendedFor: ["chat"], |
| 222 | }, |
| 223 | { |
| 224 | model: "deepseek-v3", |
| 225 | displayName: "DeepSeek V3", |
| 226 | contextLength: 128000, |
| 227 | maxCompletionTokens: 4096, |
| 228 | description: |
| 229 | "Advanced DeepSeek model with strong performance in technical domains.", |
| 230 | recommendedFor: ["chat"], |
| 231 | }, |
| 232 | { |
| 233 | model: "deepseek-r1-0528", |
| 234 | displayName: "DeepSeek R1 (05-28)", |
| 235 | contextLength: 128000, |
| 236 | maxCompletionTokens: 4096, |
| 237 | description: |
| 238 | "DeepSeek reasoning model optimized for complex problem-solving tasks.", |
| 239 | recommendedFor: ["chat"], |
| 240 | }, |
| 241 | { |
| 242 | model: "deepseek-chat", |
| 243 | displayName: "DeepSeek Chat", |
| 244 | contextLength: 128000, |
| 245 | maxCompletionTokens: 4096, |
| 246 | description: |
| 247 | "DeepSeek model specifically optimized for conversational interactions.", |
| 248 | recommendedFor: ["chat"], |
| 249 | }, |
| 250 | { |
| 251 | model: "deepseek-reasoner", |
| 252 | displayName: "DeepSeek Reasoner", |
| 253 | contextLength: 128000, |
| 254 | maxCompletionTokens: 4096, |
| 255 | description: |
| 256 | "DeepSeek model with enhanced reasoning capabilities for analytical tasks.", |
| 257 | recommendedFor: ["chat"], |
| 258 | }, |
| 259 | |
| 260 | // Qwen Series |
| 261 | { |
| 262 | model: "qwen3-30b-a3b", |
| 263 | displayName: "Qwen3 30B A3B", |
| 264 | contextLength: 128000, |
| 265 | maxCompletionTokens: 4096, |
| 266 | description: |
| 267 | "Large Qwen model with 30B parameters for high-quality text generation.", |
| 268 | recommendedFor: ["chat"], |
| 269 | }, |
| 270 | { |
| 271 | model: "qwen3-coder-plus-2025-07-22", |
| 272 | displayName: "Qwen3 Coder Plus (2025-07-22)", |
| 273 | contextLength: 128000, |
| 274 | maxCompletionTokens: 4096, |
| 275 | description: |
| 276 | "Qwen model specialized for coding tasks with enhanced programming capabilities.", |
| 277 | recommendedFor: ["chat"], |
| 278 | }, |
| 279 | ], |
| 280 | }; |