| 1 | import { HTMLInputTypeAttribute } from "react"; |
| 2 | import { ModelProviderTags } from "../../../components/modelSelection/utils"; |
| 3 | import { completionParamsInputs } from "./completionParamsInputs"; |
| 4 | import type { ModelPackage } from "./models"; |
| 5 | import { models } from "./models"; |
| 6 | |
| 7 | export interface InputDescriptor { |
| 8 | inputType: HTMLInputTypeAttribute; |
| 9 | key: string; |
| 10 | label: string; |
| 11 | placeholder?: string; |
| 12 | defaultValue?: string | number; |
| 13 | min?: number; |
| 14 | max?: number; |
| 15 | step?: number; |
| 16 | options?: string[]; |
| 17 | required?: boolean; |
| 18 | description?: string; |
| 19 | [key: string]: any; |
| 20 | } |
| 21 | |
| 22 | export interface ProviderInfo { |
| 23 | title: string; |
| 24 | icon?: string; |
| 25 | provider: string; |
| 26 | description: string; |
| 27 | longDescription?: string; |
| 28 | tags?: ModelProviderTags[]; |
| 29 | packages: ModelPackage[]; |
| 30 | params?: any; |
| 31 | collectInputFor?: InputDescriptor[]; |
| 32 | refPage?: string; |
| 33 | apiKeyUrl?: string; |
| 34 | downloadUrl?: string; |
| 35 | } |
| 36 | |
| 37 | const completionParamsInputsConfigs = Object.values(completionParamsInputs); |
| 38 | |
| 39 | const openSourceModels = Object.values(models).filter( |
| 40 | ({ isOpenSource }) => isOpenSource, |
| 41 | ); |
| 42 | |
| 43 | export const apiBaseInput: InputDescriptor = { |
| 44 | inputType: "text", |
| 45 | key: "apiBase", |
| 46 | label: "API Base", |
| 47 | placeholder: "e.g. http://localhost:8080", |
| 48 | required: false, |
| 49 | }; |
| 50 | |
| 51 | export const providers: Partial<Record<string, ProviderInfo>> = { |
| 52 | openai: { |
| 53 | title: "OpenAI", |
| 54 | provider: "openai", |
| 55 | description: "Use gpt-5, gpt-4, or any other OpenAI model", |
| 56 | longDescription: |
| 57 | "Use gpt-5, gpt-4, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.", |
| 58 | icon: "openai.png", |
| 59 | tags: [ModelProviderTags.RequiresApiKey], |
| 60 | packages: [ |
| 61 | models.gpt5, |
| 62 | models.gpt4o, |
| 63 | models.gpt4omini, |
| 64 | models.gpt4turbo, |
| 65 | models.gpt35turbo, |
| 66 | { |
| 67 | ...models.AUTODETECT, |
| 68 | params: { |
| 69 | ...models.AUTODETECT.params, |
| 70 | title: "OpenAI", |
| 71 | }, |
| 72 | }, |
| 73 | ], |
| 74 | collectInputFor: [ |
| 75 | { |
| 76 | inputType: "text", |
| 77 | key: "apiKey", |
| 78 | label: "API Key", |
| 79 | placeholder: "Enter your OpenAI API key", |
| 80 | required: true, |
| 81 | }, |
| 82 | ...completionParamsInputsConfigs, |
| 83 | ], |
| 84 | apiKeyUrl: "https://platform.openai.com/account/api-keys", |
| 85 | }, |
| 86 | anthropic: { |
| 87 | title: "Anthropic", |
| 88 | provider: "anthropic", |
| 89 | refPage: "anthropicllm", |
| 90 | description: |
| 91 | "Anthropic builds state-of-the-art models with large context length and high recall", |
| 92 | icon: "anthropic.png", |
| 93 | tags: [ModelProviderTags.RequiresApiKey], |
| 94 | longDescription: |
| 95 | "To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.", |
| 96 | collectInputFor: [ |
| 97 | { |
| 98 | inputType: "text", |
| 99 | key: "apiKey", |
| 100 | label: "API Key", |
| 101 | placeholder: "Enter your Anthropic API key", |
| 102 | required: true, |
| 103 | }, |
| 104 | ...completionParamsInputsConfigs, |
| 105 | { |
| 106 | ...completionParamsInputs.contextLength, |
| 107 | defaultValue: 100000, |
| 108 | }, |
| 109 | ], |
| 110 | packages: [ |
| 111 | models.claude35Sonnet, |
| 112 | models.claude3Opus, |
| 113 | models.claude3Sonnet, |
| 114 | models.claude35Haiku, |
| 115 | ], |
| 116 | apiKeyUrl: "https://console.anthropic.com/account/keys", |
| 117 | }, |
| 118 | moonshot: { |
| 119 | title: "Moonshot", |
| 120 | provider: "moonshot", |
| 121 | description: "Use the Moonshot API for LLMs", |
| 122 | longDescription: `[Visit our documentation](https://docs.continue.dev/reference/Model%20Providers/moonshot) for information on obtaining an API key.`, |
| 123 | icon: "moonshot.png", |
| 124 | tags: [ModelProviderTags.RequiresApiKey], |
| 125 | refPage: "moonshot", |
| 126 | apiKeyUrl: "https://docs.moonshot.cn/docs/getting-started", |
| 127 | packages: [models.moonshotChat], |
| 128 | collectInputFor: [ |
| 129 | { |
| 130 | inputType: "text", |
| 131 | key: "apiKey", |
| 132 | label: "API Key", |
| 133 | placeholder: "Enter your Moonshot API key", |
| 134 | required: true, |
| 135 | }, |
| 136 | ...completionParamsInputsConfigs, |
| 137 | ], |
| 138 | }, |
| 139 | "function-network": { |
| 140 | title: "Function Network", |
| 141 | provider: "function-network", |
| 142 | refPage: "function-network", |
| 143 | description: |
| 144 | "Run open-source models on Function Network. Private, Affordable User-Owned AI", |
| 145 | icon: "function-network.png", |
| 146 | longDescription: `Function Network is a private, affordable user-owned AI platform that allows you to run open-source models. Experience bleeding-edge Generative AI models with limitless scalability, all powered by our distributed inference network.`, |
| 147 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 148 | params: { |
| 149 | apiKey: "", |
| 150 | }, |
| 151 | collectInputFor: [ |
| 152 | { |
| 153 | inputType: "text", |
| 154 | key: "apiKey", |
| 155 | label: "API Key", |
| 156 | placeholder: "Enter your Function Network API key", |
| 157 | required: true, |
| 158 | }, |
| 159 | ...completionParamsInputsConfigs, |
| 160 | ], |
| 161 | packages: [models.llama31Chat, models.deepseek], |
| 162 | apiKeyUrl: "https://function.network/join-waitlist", |
| 163 | }, |
| 164 | ovhcloud: { |
| 165 | title: "OVHcloud", |
| 166 | provider: "ovhcloud", |
| 167 | refPage: "ovhcloud", |
| 168 | description: |
| 169 | "OVHcloud AI Endpoints is a serverless inference API that provides access to a curated selection of models (e.g., Llama, Mistral, Qwen, Deepseek). It is designed with security and data privacy in mind and is compliant with GDPR.", |
| 170 | longDescription: `To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).`, |
| 171 | params: { |
| 172 | apiKey: "", |
| 173 | }, |
| 174 | collectInputFor: [ |
| 175 | { |
| 176 | inputType: "text", |
| 177 | key: "apiKey", |
| 178 | label: "API key", |
| 179 | placeholder: "Enter your AI Endpoints API key", |
| 180 | required: true, |
| 181 | }, |
| 182 | ...completionParamsInputsConfigs, |
| 183 | ], |
| 184 | icon: "ovhcloud.png", |
| 185 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 186 | packages: [ |
| 187 | models.llama318bChat, |
| 188 | models.llama3170bChat, |
| 189 | models.llama3370bChat, |
| 190 | models.codestralMamba, |
| 191 | models.mistralOs, |
| 192 | models.mistralNemo, |
| 193 | models.Qwen25Coder32b, |
| 194 | models.deepseekR1DistillLlama70B, |
| 195 | ], |
| 196 | apiKeyUrl: "https://endpoints.ai.cloud.ovh.net/", |
| 197 | }, |
| 198 | scaleway: { |
| 199 | title: "Scaleway", |
| 200 | provider: "scaleway", |
| 201 | refPage: "scaleway", |
| 202 | description: |
| 203 | "Use the Scaleway Generative APIs to instantly access leading open models", |
| 204 | longDescription: `Hosted in European data centers, ideal for developers requiring low latency, full data privacy, and compliance with EU AI Act. You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models). Get started:\n1. Create an API key [here](https://console.scaleway.com/iam/api-keys/)\n2. Paste below\n3. Select a model preset`, |
| 205 | params: { |
| 206 | apiKey: "", |
| 207 | }, |
| 208 | collectInputFor: [ |
| 209 | { |
| 210 | inputType: "text", |
| 211 | key: "apiKey", |
| 212 | label: "API key", |
| 213 | placeholder: "Enter your Scaleway API key", |
| 214 | required: true, |
| 215 | }, |
| 216 | ...completionParamsInputsConfigs, |
| 217 | ], |
| 218 | icon: "scaleway.png", |
| 219 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 220 | packages: [ |
| 221 | models.llama318bChat, |
| 222 | models.llama3170bChat, |
| 223 | models.mistralNemo, |
| 224 | models.Qwen25Coder32b, |
| 225 | ], |
| 226 | apiKeyUrl: "https://console.scaleway.com/iam/api-keys", |
| 227 | }, |
| 228 | azure: { |
| 229 | title: "Azure OpenAI", |
| 230 | provider: "azure", |
| 231 | description: |
| 232 | "Azure OpenAI Service offers industry-leading coding and language AI models that you can fine-tune to your specific needs for a variety of use cases.", |
| 233 | longDescription: `[Visit our documentation](https://docs.continue.dev/reference/Model%20Providers/azure) for information on obtaining an API key. |
| 234 | |
| 235 | Select the \`GPT-4o\` model below to complete your provider configuration, but note that this will not affect the specific model you need to select when creating your Azure deployment.`, |
| 236 | icon: "azure.png", |
| 237 | tags: [ModelProviderTags.RequiresApiKey], |
| 238 | refPage: "azure", |
| 239 | apiKeyUrl: |
| 240 | "https://azure.microsoft.com/en-us/products/ai-services/openai-service", |
| 241 | packages: [models.gpt4o], |
| 242 | params: { |
| 243 | apiKey: "", |
| 244 | deployment: "", |
| 245 | apiBase: "", |
| 246 | apiVersion: "", |
| 247 | apiType: "azure", |
| 248 | }, |
| 249 | collectInputFor: [ |
| 250 | { |
| 251 | inputType: "text", |
| 252 | key: "apiKey", |
| 253 | label: "API Key", |
| 254 | placeholder: "Enter your Azure OpenAI API key", |
| 255 | required: true, |
| 256 | }, |
| 257 | { |
| 258 | inputType: "text", |
| 259 | key: "deployment", |
| 260 | label: "Deployment", |
| 261 | placeholder: "Enter the deployment name", |
| 262 | required: true, |
| 263 | }, |
| 264 | { ...apiBaseInput, required: true }, |
| 265 | { |
| 266 | inputType: "text", |
| 267 | key: "apiVersion", |
| 268 | label: "API Version", |
| 269 | placeholder: "Enter the API version", |
| 270 | required: false, |
| 271 | defaultValue: "2023-07-01-preview", |
| 272 | }, |
| 273 | ...completionParamsInputsConfigs, |
| 274 | ], |
| 275 | }, |
| 276 | mistral: { |
| 277 | title: "Mistral", |
| 278 | provider: "mistral", |
| 279 | description: |
| 280 | "The Mistral API provides seamless access to their models, including Codestral, Mistral 8x22B, Mistral Large, and more.", |
| 281 | icon: "mistral.png", |
| 282 | longDescription: `To get access to the Mistral API, obtain your API key from [here](https://console.mistral.ai/codestral) for Codestral or the [Mistral platform](https://docs.mistral.ai/) for all other models.`, |
| 283 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 284 | params: { |
| 285 | apiKey: "", |
| 286 | }, |
| 287 | collectInputFor: [ |
| 288 | { |
| 289 | inputType: "text", |
| 290 | key: "apiKey", |
| 291 | label: "API Key", |
| 292 | placeholder: "Enter your Mistral API key", |
| 293 | required: true, |
| 294 | }, |
| 295 | ...completionParamsInputsConfigs, |
| 296 | ], |
| 297 | packages: [ |
| 298 | models.codestral, |
| 299 | models.codestralMamba, |
| 300 | models.mistralLarge, |
| 301 | models.mistralSmall, |
| 302 | models.mistral8x22b, |
| 303 | models.mistral8x7b, |
| 304 | models.mistral7b, |
| 305 | ], |
| 306 | apiKeyUrl: "https://console.mistral.ai/codestral", |
| 307 | }, |
| 308 | ollama: { |
| 309 | title: "Ollama", |
| 310 | provider: "ollama", |
| 311 | description: |
| 312 | "One of the fastest ways to get started with local models on Mac, Linux, or Windows", |
| 313 | longDescription: |
| 314 | 'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/download) and open the application\n2. Open a terminal and run `ollama run <MODEL_NAME>`. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.json (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.', |
| 315 | icon: "ollama.png", |
| 316 | tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource], |
| 317 | packages: [ |
| 318 | { |
| 319 | ...models.AUTODETECT, |
| 320 | params: { |
| 321 | ...models.AUTODETECT.params, |
| 322 | title: "Ollama", |
| 323 | }, |
| 324 | }, |
| 325 | ...openSourceModels, |
| 326 | ], |
| 327 | collectInputFor: [ |
| 328 | ...completionParamsInputsConfigs, |
| 329 | { ...apiBaseInput, defaultValue: "http://localhost:11434" }, |
| 330 | ], |
| 331 | downloadUrl: "https://ollama.ai/download", |
| 332 | }, |
| 333 | cohere: { |
| 334 | title: "Cohere", |
| 335 | provider: "cohere", |
| 336 | refPage: "cohere", |
| 337 | description: |
| 338 | "Optimized for enterprise generative AI, search and discovery, and advanced retrieval.", |
| 339 | icon: "cohere.png", |
| 340 | tags: [ModelProviderTags.RequiresApiKey], |
| 341 | longDescription: |
| 342 | "To use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.", |
| 343 | collectInputFor: [ |
| 344 | { |
| 345 | inputType: "text", |
| 346 | key: "apiKey", |
| 347 | label: "API Key", |
| 348 | placeholder: "Enter your Cohere API key", |
| 349 | required: true, |
| 350 | }, |
| 351 | ...completionParamsInputsConfigs, |
| 352 | ], |
| 353 | packages: [ |
| 354 | models.commandA032025, |
| 355 | models.commandR7BArabic022025, |
| 356 | models.commandR7B122024, |
| 357 | models.commandRPlus082024, |
| 358 | models.commandR082024, |
| 359 | models.commandRPlus042024, |
| 360 | models.commandR032024, |
| 361 | models.c4aiAyaVision32B, |
| 362 | models.c4aiAyaVision8B, |
| 363 | models.c4aiAyaExpanse32B, |
| 364 | models.c4aiAyaExpanse8B, |
| 365 | ], |
| 366 | apiKeyUrl: "https://docs.cohere.com/v2/docs/rate-limits", |
| 367 | }, |
| 368 | groq: { |
| 369 | title: "Groq", |
| 370 | provider: "groq", |
| 371 | icon: "groq.png", |
| 372 | description: |
| 373 | "Groq is the fastest LLM provider by a wide margin, using 'LPUs' to serve open-source models at blazing speed.", |
| 374 | longDescription: |
| 375 | "To get started with Groq, obtain an API key from their website [here](https://wow.groq.com/).", |
| 376 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 377 | collectInputFor: [ |
| 378 | { |
| 379 | inputType: "text", |
| 380 | key: "apiKey", |
| 381 | label: "API Key", |
| 382 | placeholder: "Enter your Groq API key", |
| 383 | required: true, |
| 384 | }, |
| 385 | ], |
| 386 | packages: [ |
| 387 | models.llama31405bChat, |
| 388 | models.llama3170bChat, |
| 389 | models.llama318bChat, |
| 390 | { ...models.mixtralTrial, title: "Mixtral" }, |
| 391 | { |
| 392 | ...models.AUTODETECT, |
| 393 | params: { |
| 394 | ...models.AUTODETECT.params, |
| 395 | title: "Groq", |
| 396 | }, |
| 397 | }, |
| 398 | ], |
| 399 | apiKeyUrl: "https://console.groq.com/keys", |
| 400 | }, |
| 401 | deepseek: { |
| 402 | title: "DeepSeek", |
| 403 | provider: "deepseek", |
| 404 | icon: "deepseek.png", |
| 405 | description: |
| 406 | "DeepSeek provides cheap inference of its DeepSeek Coder v2 and other impressive open-source models.", |
| 407 | longDescription: |
| 408 | "To get started with DeepSeek, obtain an API key from their website [here](https://platform.deepseek.com/api_keys).", |
| 409 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 410 | collectInputFor: [ |
| 411 | { |
| 412 | inputType: "text", |
| 413 | key: "apiKey", |
| 414 | label: "API Key", |
| 415 | placeholder: "Enter your DeepSeek API key", |
| 416 | required: true, |
| 417 | }, |
| 418 | ], |
| 419 | packages: [ |
| 420 | models.deepseekCoderApi, |
| 421 | models.deepseekChatApi, |
| 422 | models.deepseekReasonerApi, |
| 423 | ], |
| 424 | apiKeyUrl: "https://platform.deepseek.com/api_keys", |
| 425 | }, |
| 426 | together: { |
| 427 | title: "TogetherAI", |
| 428 | provider: "together", |
| 429 | refPage: "together", |
| 430 | description: |
| 431 | "Use the TogetherAI API for extremely fast streaming of open-source models", |
| 432 | icon: "together.png", |
| 433 | longDescription: `Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset`, |
| 434 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 435 | params: { |
| 436 | apiKey: "", |
| 437 | }, |
| 438 | collectInputFor: [ |
| 439 | { |
| 440 | inputType: "text", |
| 441 | key: "apiKey", |
| 442 | label: "API Key", |
| 443 | placeholder: "Enter your TogetherAI API key", |
| 444 | required: true, |
| 445 | }, |
| 446 | ...completionParamsInputsConfigs, |
| 447 | ], |
| 448 | packages: [ |
| 449 | models.llama31Chat, |
| 450 | models.codeLlamaInstruct, |
| 451 | models.mistralOs, |
| 452 | ].map((p) => { |
| 453 | p.params.contextLength = 4096; |
| 454 | return p; |
| 455 | }), |
| 456 | apiKeyUrl: "https://api.together.xyz/settings/api-keys", |
| 457 | }, |
| 458 | ncompass: { |
| 459 | title: "nCompass", |
| 460 | provider: "ncompass", |
| 461 | refPage: "ncompass", |
| 462 | description: |
| 463 | "Use the nCompass API for extremely fast streaming of open-source models", |
| 464 | icon: "ncompass.png", |
| 465 | longDescription: `nCompass is an extremely fast inference engine for open-source language models. To get started, obtain an API key from [their console](https://app.ncompass.tech/api-settings).`, |
| 466 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 467 | params: { |
| 468 | apiKey: "", |
| 469 | }, |
| 470 | collectInputFor: [ |
| 471 | { |
| 472 | inputType: "text", |
| 473 | key: "apiKey", |
| 474 | label: "API Key", |
| 475 | placeholder: "Enter your nCompass API key", |
| 476 | required: true, |
| 477 | }, |
| 478 | ...completionParamsInputsConfigs, |
| 479 | ], |
| 480 | packages: [ |
| 481 | models.llama318bChat, |
| 482 | models.llama3370bChat, |
| 483 | models.Qwen25Coder32b, |
| 484 | ].map((p) => { |
| 485 | p.params.contextLength = 4096; |
| 486 | return p; |
| 487 | }), |
| 488 | apiKeyUrl: "https://app.ncompass.tech/api-settings", |
| 489 | }, |
| 490 | novita: { |
| 491 | title: "NovitaAI", |
| 492 | provider: "novita", |
| 493 | refPage: "novita", |
| 494 | description: |
| 495 | "Use Novita AI API for extremely fast streaming of open-source models", |
| 496 | icon: "novita.png", |
| 497 | longDescription: `[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM APIs](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. To get started with Novita AI:\n1. Obtain an API key from [here](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link)\n2. Paste below\n3. Select a model preset`, |
| 498 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 499 | params: { |
| 500 | apiKey: "", |
| 501 | }, |
| 502 | collectInputFor: [ |
| 503 | { |
| 504 | inputType: "text", |
| 505 | key: "apiKey", |
| 506 | label: "API Key", |
| 507 | placeholder: "Enter your Novita AI API key", |
| 508 | required: true, |
| 509 | }, |
| 510 | ...completionParamsInputsConfigs, |
| 511 | ], |
| 512 | packages: [ |
| 513 | models.llama318BChat, |
| 514 | models.mistralChat, |
| 515 | models.deepseekR1Chat, |
| 516 | models.deepseekV3Chat, |
| 517 | ].map((p) => { |
| 518 | p.params.contextLength = 4096; |
| 519 | return p; |
| 520 | }), |
| 521 | apiKeyUrl: |
| 522 | "https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link", |
| 523 | }, |
| 524 | gemini: { |
| 525 | title: "Google Gemini API", |
| 526 | provider: "gemini", |
| 527 | refPage: "geminiapi", |
| 528 | description: |
| 529 | "Try out Google's state-of-the-art Gemini model from their API.", |
| 530 | longDescription: `To get started with Google Gemini API, obtain your API key from [here](https://ai.google.dev/tutorials/workspace_auth_quickstart) and paste it below.`, |
| 531 | icon: "gemini.png", |
| 532 | tags: [ModelProviderTags.RequiresApiKey], |
| 533 | collectInputFor: [ |
| 534 | { |
| 535 | inputType: "text", |
| 536 | key: "apiKey", |
| 537 | label: "API Key", |
| 538 | placeholder: "Enter your Gemini API key", |
| 539 | required: true, |
| 540 | }, |
| 541 | ], |
| 542 | packages: [ |
| 543 | models.gemini20Flash, |
| 544 | models.gemini20FlashLite, |
| 545 | models.gemini20FlashImageGeneration, |
| 546 | models.gemini25ProExp, |
| 547 | models.gemini15Pro, |
| 548 | models.geminiPro, |
| 549 | models.gemini15Flash, |
| 550 | ], |
| 551 | apiKeyUrl: "https://aistudio.google.com/app/apikey", |
| 552 | }, |
| 553 | xAI: { |
| 554 | title: "xAI", |
| 555 | provider: "xAI", |
| 556 | icon: "xAI.png", |
| 557 | description: |
| 558 | "xAI is a company working on building artificial intelligence to accelerate human scientific discovery", |
| 559 | longDescription: |
| 560 | "To get started with xAI, obtain an API key from their [console](https://console.x.ai/).", |
| 561 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 562 | collectInputFor: [ |
| 563 | { |
| 564 | inputType: "text", |
| 565 | key: "apiKey", |
| 566 | label: "API Key", |
| 567 | placeholder: "Enter your xAI API key", |
| 568 | required: true, |
| 569 | }, |
| 570 | ], |
| 571 | packages: [models.grokBeta], |
| 572 | apiKeyUrl: "https://console.x.ai/", |
| 573 | }, |
| 574 | lmstudio: { |
| 575 | title: "LM Studio", |
| 576 | provider: "lmstudio", |
| 577 | description: |
| 578 | "One of the fastest ways to get started with local models on Mac or Windows", |
| 579 | longDescription: |
| 580 | "LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started:\n1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application\n2. Search for and download the desired model from the home screen of LMStudio.\n3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'.\n4. Once your model is loaded and the server has started, you can begin using Continue.", |
| 581 | icon: "lmstudio.png", |
| 582 | tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource], |
| 583 | params: { |
| 584 | apiBase: "http://localhost:1234/v1/", |
| 585 | }, |
| 586 | packages: [ |
| 587 | { |
| 588 | ...models.AUTODETECT, |
| 589 | params: { |
| 590 | ...models.AUTODETECT.params, |
| 591 | title: "LM Studio", |
| 592 | }, |
| 593 | }, |
| 594 | ...openSourceModels, |
| 595 | ], |
| 596 | collectInputFor: [...completionParamsInputsConfigs], |
| 597 | downloadUrl: "https://lmstudio.ai/", |
| 598 | }, |
| 599 | llamafile: { |
| 600 | title: "llamafile", |
| 601 | provider: "llamafile", |
| 602 | icon: "llamafile.png", |
| 603 | description: |
| 604 | "llamafiles are a self-contained binary to run an open-source LLM", |
| 605 | longDescription: `To get started with llamafiles, find and download a binary on their [GitHub repo](https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart). Then run it with the following command:\n\n\`\`\`shell\nchmod +x ./llamafile\n./llamafile\n\`\`\``, |
| 606 | tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource], |
| 607 | packages: openSourceModels, |
| 608 | collectInputFor: [...completionParamsInputsConfigs], |
| 609 | downloadUrl: |
| 610 | "https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart", |
| 611 | }, |
| 612 | replicate: { |
| 613 | title: "Replicate", |
| 614 | provider: "replicate", |
| 615 | refPage: "replicatellm", |
| 616 | description: "Use the Replicate API to run open-source models", |
| 617 | longDescription: `Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate:\n1. Obtain an API key from [here](https://replicate.com)\n2. Paste below\n3. Select a model preset`, |
| 618 | params: { |
| 619 | apiKey: "", |
| 620 | }, |
| 621 | collectInputFor: [ |
| 622 | { |
| 623 | inputType: "text", |
| 624 | key: "apiKey", |
| 625 | label: "API Key", |
| 626 | placeholder: "Enter your Replicate API key", |
| 627 | required: true, |
| 628 | }, |
| 629 | ...completionParamsInputsConfigs, |
| 630 | ], |
| 631 | icon: "replicate.png", |
| 632 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 633 | packages: [ |
| 634 | models.llama3Chat, |
| 635 | models.codeLlamaInstruct, |
| 636 | models.wizardCoder, |
| 637 | models.mistralOs, |
| 638 | ], |
| 639 | apiKeyUrl: "https://replicate.com/account/api-tokens", |
| 640 | }, |
| 641 | "llama.cpp": { |
| 642 | title: "llama.cpp", |
| 643 | provider: "llama.cpp", |
| 644 | refPage: "llamacpp", |
| 645 | description: "If you are running the llama.cpp server from source", |
| 646 | longDescription: `llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this: |
| 647 | |
| 648 | 1. Clone the repository with \`git clone https://github.com/ggerganov/llama.cpp\`. |
| 649 | 2. \`cd llama.cpp\` |
| 650 | 3. Run \`make\` to build the server. |
| 651 | 4. Download the model you'd like to use and place it in the \`llama.cpp/models\` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)) |
| 652 | 5. Run the llama.cpp server with the command below (replacing with the model you downloaded): |
| 653 | |
| 654 | \`\`\`shell |
| 655 | .\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf |
| 656 | \`\`\` |
| 657 | |
| 658 | After it's up and running, you can start using Continue.`, |
| 659 | icon: "llamacpp.png", |
| 660 | tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource], |
| 661 | packages: openSourceModels, |
| 662 | collectInputFor: [...completionParamsInputsConfigs], |
| 663 | downloadUrl: "https://github.com/ggerganov/llama.cpp", |
| 664 | }, |
| 665 | "openai-aiohttp": { |
| 666 | title: "Other OpenAI-compatible API", |
| 667 | provider: "openai", |
| 668 | description: |
| 669 | "If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL", |
| 670 | longDescription: `If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: |
| 671 | |
| 672 | - [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation) |
| 673 | - [LocalAI](https://localai.io/basics/getting_started/) |
| 674 | - [llama-cpp-python](https://github.com/continuedev/ggml-server-example) |
| 675 | - [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`, |
| 676 | params: { |
| 677 | apiBase: "", |
| 678 | }, |
| 679 | collectInputFor: [ |
| 680 | { |
| 681 | ...apiBaseInput, |
| 682 | defaultValue: "http://localhost:8000/v1/", |
| 683 | }, |
| 684 | ...completionParamsInputsConfigs, |
| 685 | ], |
| 686 | icon: "openai.png", |
| 687 | tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource], |
| 688 | packages: [ |
| 689 | { |
| 690 | ...models.AUTODETECT, |
| 691 | params: { |
| 692 | ...models.AUTODETECT.params, |
| 693 | title: "OpenAI", |
| 694 | }, |
| 695 | }, |
| 696 | ...openSourceModels, |
| 697 | ], |
| 698 | }, |
| 699 | watsonx: { |
| 700 | title: "IBM watsonx", |
| 701 | provider: "watsonx", |
| 702 | refPage: "watsonX", |
| 703 | description: |
| 704 | "Explore foundation models from IBM and other third-parties depending on your use case.", |
| 705 | longDescription: `**watsonx**, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks. |
| 706 | |
| 707 | To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx) on watsonx SaaS, create your first project and setup an [API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key).`, |
| 708 | collectInputFor: [ |
| 709 | { |
| 710 | inputType: "text", |
| 711 | key: "apiBase", |
| 712 | label: "watsonx URL", |
| 713 | placeholder: "e.g. http://us-south.dataplatform.cloud.ibm.com", |
| 714 | required: true, |
| 715 | }, |
| 716 | { |
| 717 | inputType: "text", |
| 718 | key: "projectId", |
| 719 | label: "Project ID", |
| 720 | placeholder: "Enter your project ID", |
| 721 | required: true, |
| 722 | }, |
| 723 | { |
| 724 | inputType: "text", |
| 725 | key: "apiKey", |
| 726 | label: "API key", |
| 727 | placeholder: "Enter your API key (SaaS) or ZenApiKey (Software)", |
| 728 | required: true, |
| 729 | }, |
| 730 | { |
| 731 | inputType: "text", |
| 732 | key: "apiVersion", |
| 733 | label: "API version", |
| 734 | placeholder: "Enter the API Version", |
| 735 | defaultValue: "2024-03-14", |
| 736 | required: true, |
| 737 | }, |
| 738 | { |
| 739 | inputType: "text", |
| 740 | key: "deploymentId", |
| 741 | label: "Deployment ID", |
| 742 | placeholder: "Enter model deployment ID", |
| 743 | required: false, |
| 744 | }, |
| 745 | ...completionParamsInputsConfigs, |
| 746 | ], |
| 747 | apiKeyUrl: |
| 748 | "https://dataplatform.cloud.ibm.com/registration/stepone?context=wx", |
| 749 | icon: "WatsonX.png", |
| 750 | tags: [ModelProviderTags.RequiresApiKey], |
| 751 | packages: [ |
| 752 | models.granite3Instruct8b, |
| 753 | models.granite3Instruct2b, |
| 754 | models.graniteCode3b, |
| 755 | models.graniteCode8b, |
| 756 | models.graniteCode20b, |
| 757 | models.graniteCode34b, |
| 758 | models.graniteChat, |
| 759 | models.MistralLarge, |
| 760 | models.MetaLlama3, |
| 761 | ], |
| 762 | }, |
| 763 | sambanova: { |
| 764 | title: "SambaNova", |
| 765 | provider: "sambanova", |
| 766 | refPage: "sambanova", |
| 767 | description: "Use SambaNova Cloud for fast inference performance", |
| 768 | icon: "sambanova.png", |
| 769 | longDescription: `The SambaNova Cloud is a cloud platform for running large open source AI models with the world record performance and zero data retention. You can sign up [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)`, |
| 770 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 771 | params: { |
| 772 | apiKey: "", |
| 773 | }, |
| 774 | collectInputFor: [ |
| 775 | { |
| 776 | inputType: "text", |
| 777 | key: "apiKey", |
| 778 | label: "API Key", |
| 779 | placeholder: "Enter your SambaNova Cloud API key", |
| 780 | required: true, |
| 781 | }, |
| 782 | ...completionParamsInputsConfigs, |
| 783 | ], |
| 784 | packages: [ |
| 785 | models.llama4Scout, |
| 786 | models.llama4Maverick, |
| 787 | models.llama3370BInstruct, |
| 788 | models.llama318BInstruct, |
| 789 | models.llama31405BInstruct, |
| 790 | models.llama321BInstruct, |
| 791 | models.llama323BInstruct, |
| 792 | models.qwq32B, |
| 793 | models.deepseekR1DistillLlama70B, |
| 794 | models.deepseekR1, |
| 795 | models.deepseekV3, |
| 796 | ], |
| 797 | apiKeyUrl: "https://cloud.sambanova.ai/apis", |
| 798 | }, |
| 799 | cerebras: { |
| 800 | title: "Cerebras", |
| 801 | provider: "cerebras", |
| 802 | icon: "cerebras.png", |
| 803 | description: |
| 804 | "Cerebras Inference is a custom silicon for fast inference of LLM models.", |
| 805 | longDescription: "Get your API key [here](https://cloud.cerebras.ai/).", |
| 806 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 807 | collectInputFor: [ |
| 808 | { |
| 809 | inputType: "text", |
| 810 | key: "apiKey", |
| 811 | label: "API Key", |
| 812 | placeholder: "Enter your Cerebras API key", |
| 813 | required: true, |
| 814 | }, |
| 815 | ], |
| 816 | packages: [ |
| 817 | models.llama3170bChat, |
| 818 | models.llama318bChat, |
| 819 | { |
| 820 | ...models.AUTODETECT, |
| 821 | params: { |
| 822 | ...models.AUTODETECT.params, |
| 823 | title: "Cerebras", |
| 824 | }, |
| 825 | }, |
| 826 | ], |
| 827 | apiKeyUrl: "https://cloud.cerebras.ai/", |
| 828 | }, |
| 829 | vertexai: { |
| 830 | title: "VertexAI", |
| 831 | provider: "vertexai", |
| 832 | description: "Use supported Vertex AI models", |
| 833 | longDescription: |
| 834 | "Use the supported Vertex AI models - see [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authenticate", |
| 835 | icon: "vertexai.png", |
| 836 | packages: [ |
| 837 | models.VertexGemini15Pro, |
| 838 | models.VertexGemini15Flash, |
| 839 | models.mistralLarge, |
| 840 | ], |
| 841 | collectInputFor: [ |
| 842 | { |
| 843 | inputType: "project", |
| 844 | key: "projectId", |
| 845 | label: "Project Id", |
| 846 | placeholder: "Enter your Vertex AI project Id", |
| 847 | required: true, |
| 848 | }, |
| 849 | { |
| 850 | inputType: "region", |
| 851 | key: "region", |
| 852 | label: "Region", |
| 853 | placeholder: "Enter your Vertex AI region", |
| 854 | required: true, |
| 855 | }, |
| 856 | |
| 857 | ...completionParamsInputsConfigs, |
| 858 | ], |
| 859 | }, |
| 860 | |
| 861 | askSage: { |
| 862 | title: "Ask Sage", |
| 863 | provider: "askSage", |
| 864 | icon: "ask-sage.png", |
| 865 | description: |
| 866 | "The Ask Sage API provides seamless access to LLMs including OpenAI, Anthropic, Meta, Mistral, and more.", |
| 867 | longDescription: `To get access to the Ask Sage API, obtain your API key from the [Ask Sage platform](https://chat.asksage.ai/) for all other models.`, |
| 868 | tags: [ModelProviderTags.RequiresApiKey], |
| 869 | params: { |
| 870 | apiKey: "", |
| 871 | apiBase: "https://api.asksage.ai/server/", // Default base URL |
| 872 | }, |
| 873 | collectInputFor: [ |
| 874 | { |
| 875 | inputType: "text", |
| 876 | key: "apiKey", |
| 877 | label: "API Key", |
| 878 | placeholder: "Enter your Ask Sage API key", |
| 879 | required: true, |
| 880 | }, |
| 881 | { |
| 882 | inputType: "text", |
| 883 | key: "apiBase", |
| 884 | label: "API Base URL", |
| 885 | placeholder: "Enter the API Base URL", |
| 886 | required: true, |
| 887 | }, |
| 888 | ...completionParamsInputsConfigs, |
| 889 | ], |
| 890 | packages: [ |
| 891 | models.asksagegpt4ogov, |
| 892 | models.asksagegpt4ominigov, |
| 893 | models.asksagegpt4gov, |
| 894 | models.asksagegpt35gov, |
| 895 | models.gpt4o, |
| 896 | models.gpt4omini, |
| 897 | models.asksagegpt4, |
| 898 | models.asksagegpt432, |
| 899 | models.asksagegpto1, |
| 900 | models.asksagegpto1mini, |
| 901 | models.gpt35turbo, |
| 902 | models.asksageclaude35gov, |
| 903 | models.claude35Sonnet, |
| 904 | models.claude3Opus, |
| 905 | models.claude3Sonnet, |
| 906 | models.grokBeta, |
| 907 | models.asksagegroqllama33, |
| 908 | models.asksagegroq70b, |
| 909 | models.mistralLarge, |
| 910 | models.llama370bChat, |
| 911 | models.gemini15Pro, |
| 912 | ], |
| 913 | apiKeyUrl: "https://chat.asksage.ai/", |
| 914 | }, |
| 915 | nebius: { |
| 916 | title: "Nebius AI Studio", |
| 917 | provider: "nebius", |
| 918 | refPage: "nebius", |
| 919 | description: "Use the Nebius API to run open-source models", |
| 920 | longDescription: `Nebius AI Studio is a cheap hosted service with $100 trial. To get started with Nebius AI Studio:\n1. Obtain an API key from [here](https://studio.nebius.ai)\n2. Paste below\n3. Select a model preset`, |
| 921 | params: { |
| 922 | apiKey: "", |
| 923 | }, |
| 924 | collectInputFor: [ |
| 925 | { |
| 926 | inputType: "text", |
| 927 | key: "apiKey", |
| 928 | label: "API Key", |
| 929 | placeholder: "Enter your Nebius AI Studio API key", |
| 930 | required: true, |
| 931 | }, |
| 932 | ...completionParamsInputsConfigs, |
| 933 | ], |
| 934 | icon: "nebius.png", |
| 935 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 936 | packages: [ |
| 937 | models.deepseekR1Chat, |
| 938 | models.deepseekV3Chat, |
| 939 | models.QwenQwQ_32b_preview, |
| 940 | models.Qwen25Coder_32b, |
| 941 | models.llama318bChat, |
| 942 | models.llama3170bChat, |
| 943 | models.llama31405bChat, |
| 944 | models.llama3170bNemotron, |
| 945 | models.mistral8x7b, |
| 946 | models.mistral8x22b, |
| 947 | models.mistralNemo, |
| 948 | models.phi3mini, |
| 949 | models.phi3medium, |
| 950 | models.gemma2_2b, |
| 951 | models.gemma2_9b, |
| 952 | models.Qwen2Coder, |
| 953 | models.deepseekCoder2Lite, |
| 954 | models.olmo7b, |
| 955 | ], |
| 956 | apiKeyUrl: "https://studio.nebius.ai/settings/api-keys", |
| 957 | }, |
| 958 | siliconflow: { |
| 959 | title: "SiliconFlow", |
| 960 | provider: "siliconflow", |
| 961 | icon: "siliconflow.png", |
| 962 | description: "SiliconFlow provides cheap open-source models.", |
| 963 | longDescription: |
| 964 | "To get started with SiliconFlow, obtain an API key from their website [here](https://cloud.siliconflow.cn/account/ak).", |
| 965 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 966 | collectInputFor: [ |
| 967 | { |
| 968 | inputType: "text", |
| 969 | key: "apiKey", |
| 970 | label: "API Key", |
| 971 | placeholder: "Enter your SiliconFlow API key", |
| 972 | required: true, |
| 973 | }, |
| 974 | ], |
| 975 | packages: [ |
| 976 | models.QwenQwQ_32b_preview, |
| 977 | models.Qwen25Coder_32b, |
| 978 | models.Hunyuan_a52b, |
| 979 | models.Llama31Nemotron_70b, |
| 980 | ], |
| 981 | apiKeyUrl: "https://cloud.siliconflow.cn/account/ak", |
| 982 | }, |
| 983 | venice: { |
| 984 | title: "Venice", |
| 985 | provider: "venice", |
| 986 | icon: "venice.png", |
| 987 | description: "Venice.", |
| 988 | tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource], |
| 989 | collectInputFor: [ |
| 990 | { |
| 991 | inputType: "text", |
| 992 | key: "apiKey", |
| 993 | label: "API Key", |
| 994 | placeholder: "Enter your Venice API key", |
| 995 | required: true, |
| 996 | }, |
| 997 | ], |
| 998 | packages: [{ ...models.AUTODETECT }], |
| 999 | apiKeyUrl: "https://venice.ai/chat", |
| 1000 | }, |
| 1001 | }; |