Elffuss BraidHub

kikocis/continue public

main · 36.8 KiBRawPermalink
1import { HTMLInputTypeAttribute } from "react";
2import { ModelProviderTags } from "../../../components/modelSelection/utils";
3import { completionParamsInputs } from "./completionParamsInputs";
4import type { ModelPackage } from "./models";
5import { models } from "./models";
6
7export 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
22export 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
37const completionParamsInputsConfigs = Object.values(completionParamsInputs);
38
39const openSourceModels = Object.values(models).filter(
40 ({ isOpenSource }) => isOpenSource,
41);
42
43export 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
51export const providers: Partial<Record<string, ProviderInfo>> = {
52 cometapi: {
53 title: "CometAPI",
54 provider: "cometapi",
55 description: "500+ AI Model API,All In One API. Just In CometAPI",
56 longDescription:
57 "Unified Access to Leading AI Models, see [here](https://www.cometapi.com/?utm_source=continue&utm_medium=integration&utm_campaign=cometapi_integration&utm_content=continue_plugin) for more details.",
58 icon: "cometapi.png",
59 tags: [ModelProviderTags.RequiresApiKey],
60 collectInputFor: [
61 {
62 inputType: "text",
63 key: "apiKey",
64 label: "API Key",
65 placeholder: "Enter your CometAPI key",
66 required: true,
67 },
68 ...completionParamsInputsConfigs,
69 ],
70 packages: [
71 // GPT, OpenAI family
72 models.cometapiGpt5ChatLatest,
73 models.cometapiGpt5Mini,
74 models.cometapiGpt5,
75 models.cometapiChatgpt4oLatest,
76 models.cometapiGpt41,
77 models.cometapiO4Mini,
78 models.cometapiO3Pro,
79 // Anthropic Claude family
80 models.cometapiClaudeOpus41,
81 models.cometapiClaudeOpus41Thinking,
82 models.cometapiClaudeSonnet4,
83 models.cometapiClaudeSonnet4Thinking,
84 models.cometapiClaude37SonnetLatest,
85 models.cometapiClaude35HaikuLatest,
86 // Google Gemini family
87 models.cometapiGemini25Pro,
88 models.cometapiGemini25Flash,
89 models.cometapiGemini25FlashLite,
90 models.cometapiGemini20Flash,
91 // xAI Grok family
92 models.cometapiGrok40709,
93 models.cometapiGrok3,
94 models.cometapiGrok3Mini,
95 // Deepseek family
96 models.cometapiDeepseekV31,
97 models.cometapiDeepseekR10528,
98 models.cometapiDeepseekChat,
99 models.cometapiDeepseekReasoner,
100 // Qwen family
101 models.cometapiQwen330BA3B,
102 models.cometapiQwen3CoderPlus,
103 //TODO: Need to wait for the improvement after the upgrade of the cometapi model list interface
104 // {
105 // ...models.AUTODETECT,
106 // params: { ...models.AUTODETECT.params, title: "CometAPI" },
107 // },
108 ],
109 apiKeyUrl: "https://api.cometapi.com/console/token",
110 },
111 openai: {
112 title: "OpenAI",
113 provider: "openai",
114 description: "Use gpt-5, gpt-4, or any other OpenAI model",
115 longDescription:
116 "Use gpt-5, gpt-4, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",
117 icon: "openai.png",
118 tags: [ModelProviderTags.RequiresApiKey],
119 packages: [
120 models.gpt5,
121 models.gpt4o,
122 models.gpt4omini,
123 models.gpt4turbo,
124 models.gpt35turbo,
125 {
126 ...models.AUTODETECT,
127 params: {
128 ...models.AUTODETECT.params,
129 title: "OpenAI",
130 },
131 },
132 ],
133 collectInputFor: [
134 {
135 inputType: "text",
136 key: "apiKey",
137 label: "API Key",
138 placeholder: "Enter your OpenAI API key",
139 required: true,
140 },
141 ...completionParamsInputsConfigs,
142 ],
143 apiKeyUrl: "https://platform.openai.com/account/api-keys",
144 },
145 anthropic: {
146 title: "Anthropic",
147 provider: "anthropic",
148 refPage: "anthropicllm",
149 description:
150 "Anthropic builds state-of-the-art models with large context length and high recall",
151 icon: "anthropic.png",
152 tags: [ModelProviderTags.RequiresApiKey],
153 longDescription:
154 "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.",
155 collectInputFor: [
156 {
157 inputType: "text",
158 key: "apiKey",
159 label: "API Key",
160 placeholder: "Enter your Anthropic API key",
161 required: true,
162 },
163 ...completionParamsInputsConfigs,
164 {
165 ...completionParamsInputs.contextLength,
166 defaultValue: 100000,
167 },
168 ],
169 packages: [models.claude4Sonnet, models.claude41Opus, models.claude35Haiku],
170 apiKeyUrl: "https://console.anthropic.com/account/keys",
171 },
172 moonshot: {
173 title: "Moonshot",
174 provider: "moonshot",
175 description: "Use the Moonshot API for LLMs",
176 longDescription: `[Visit our documentation](https://docs.continue.dev/reference/Model%20Providers/moonshot) for information on obtaining an API key.`,
177 icon: "moonshot.png",
178 tags: [ModelProviderTags.RequiresApiKey],
179 refPage: "moonshot",
180 apiKeyUrl: "https://docs.moonshot.cn/docs/getting-started",
181 packages: [models.moonshotChat],
182 collectInputFor: [
183 {
184 inputType: "text",
185 key: "apiKey",
186 label: "API Key",
187 placeholder: "Enter your Moonshot API key",
188 required: true,
189 },
190 ...completionParamsInputsConfigs,
191 ],
192 },
193 "function-network": {
194 title: "Function Network",
195 provider: "function-network",
196 refPage: "function-network",
197 description:
198 "Run open-source models on Function Network. Private, Affordable User-Owned AI",
199 icon: "function-network.png",
200 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.`,
201 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
202 params: {
203 apiKey: "",
204 },
205 collectInputFor: [
206 {
207 inputType: "text",
208 key: "apiKey",
209 label: "API Key",
210 placeholder: "Enter your Function Network API key",
211 required: true,
212 },
213 ...completionParamsInputsConfigs,
214 ],
215 packages: [models.llama31Chat, models.deepseek],
216 apiKeyUrl: "https://function.network/join-waitlist",
217 },
218 ovhcloud: {
219 title: "OVHcloud",
220 provider: "ovhcloud",
221 refPage: "ovhcloud",
222 description:
223 "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.",
224 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/).`,
225 params: {
226 apiKey: "",
227 },
228 collectInputFor: [
229 {
230 inputType: "text",
231 key: "apiKey",
232 label: "API key",
233 placeholder: "Enter your AI Endpoints API key",
234 required: true,
235 },
236 ...completionParamsInputsConfigs,
237 ],
238 icon: "ovhcloud.png",
239 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
240 packages: [
241 models.llama318bChat,
242 models.llama3170bChat,
243 models.llama3370bChat,
244 models.codestralMamba,
245 models.mistralOs,
246 models.mistralNemo,
247 models.Qwen25Coder32b,
248 models.deepseekR1DistillLlama70B,
249 ],
250 apiKeyUrl: "https://endpoints.ai.cloud.ovh.net/",
251 },
252 scaleway: {
253 title: "Scaleway",
254 provider: "scaleway",
255 refPage: "scaleway",
256 description:
257 "Use the Scaleway Generative APIs to instantly access leading open models",
258 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`,
259 params: {
260 apiKey: "",
261 },
262 collectInputFor: [
263 {
264 inputType: "text",
265 key: "apiKey",
266 label: "API key",
267 placeholder: "Enter your Scaleway API key",
268 required: true,
269 },
270 ...completionParamsInputsConfigs,
271 ],
272 icon: "scaleway.png",
273 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
274 packages: [
275 models.llama318bChat,
276 models.llama3170bChat,
277 models.mistralNemo,
278 models.Qwen25Coder32b,
279 ],
280 apiKeyUrl: "https://console.scaleway.com/iam/api-keys",
281 },
282 azure: {
283 title: "Azure OpenAI",
284 provider: "azure",
285 description:
286 "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.",
287 longDescription: `[Visit our documentation](https://docs.continue.dev/reference/Model%20Providers/azure) for information on obtaining an API key.
288
289Select 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.`,
290 icon: "azure.png",
291 tags: [ModelProviderTags.RequiresApiKey],
292 refPage: "azure",
293 apiKeyUrl:
294 "https://azure.microsoft.com/en-us/products/ai-services/openai-service",
295 packages: [models.gpt4o],
296 params: {
297 apiKey: "",
298 deployment: "",
299 apiBase: "",
300 apiVersion: "",
301 apiType: "azure",
302 },
303 collectInputFor: [
304 {
305 inputType: "text",
306 key: "apiKey",
307 label: "API Key",
308 placeholder: "Enter your Azure OpenAI API key",
309 required: true,
310 },
311 {
312 inputType: "text",
313 key: "deployment",
314 label: "Deployment",
315 placeholder: "Enter the deployment name",
316 required: true,
317 },
318 { ...apiBaseInput, required: true },
319 {
320 inputType: "text",
321 key: "apiVersion",
322 label: "API Version",
323 placeholder: "Enter the API version",
324 required: false,
325 defaultValue: "2023-07-01-preview",
326 },
327 ...completionParamsInputsConfigs,
328 ],
329 },
330 mistral: {
331 title: "Mistral",
332 provider: "mistral",
333 description:
334 "The Mistral API provides seamless access to their models, including Codestral, Mistral 8x22B, Mistral Large, and more.",
335 icon: "mistral.png",
336 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.`,
337 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
338 params: {
339 apiKey: "",
340 },
341 collectInputFor: [
342 {
343 inputType: "text",
344 key: "apiKey",
345 label: "API Key",
346 placeholder: "Enter your Mistral API key",
347 required: true,
348 },
349 ...completionParamsInputsConfigs,
350 ],
351 packages: [
352 models.codestral,
353 models.codestralMamba,
354 models.mistralLarge,
355 models.mistralSmall,
356 models.mistral8x22b,
357 models.mistral8x7b,
358 models.mistral7b,
359 ],
360 apiKeyUrl: "https://console.mistral.ai/codestral",
361 },
362 ollama: {
363 title: "Ollama",
364 provider: "ollama",
365 description:
366 "One of the fastest ways to get started with local models on Mac, Linux, or Windows",
367 longDescription:
368 '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.',
369 icon: "ollama.png",
370 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
371 packages: [
372 {
373 ...models.AUTODETECT,
374 params: {
375 ...models.AUTODETECT.params,
376 title: "Ollama",
377 },
378 },
379 ...openSourceModels,
380 ],
381 collectInputFor: [
382 ...completionParamsInputsConfigs,
383 { ...apiBaseInput, defaultValue: "http://localhost:11434" },
384 ],
385 downloadUrl: "https://ollama.ai/download",
386 },
387 cohere: {
388 title: "Cohere",
389 provider: "cohere",
390 refPage: "cohere",
391 description:
392 "Optimized for enterprise generative AI, search and discovery, and advanced retrieval.",
393 icon: "cohere.png",
394 tags: [ModelProviderTags.RequiresApiKey],
395 longDescription:
396 "To use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.",
397 collectInputFor: [
398 {
399 inputType: "text",
400 key: "apiKey",
401 label: "API Key",
402 placeholder: "Enter your Cohere API key",
403 required: true,
404 },
405 ...completionParamsInputsConfigs,
406 ],
407 packages: [
408 models.commandA032025,
409 models.commandR7BArabic022025,
410 models.commandR7B122024,
411 models.commandRPlus082024,
412 models.commandR082024,
413 models.commandRPlus042024,
414 models.commandR032024,
415 models.c4aiAyaVision32B,
416 models.c4aiAyaVision8B,
417 models.c4aiAyaExpanse32B,
418 models.c4aiAyaExpanse8B,
419 ],
420 apiKeyUrl: "https://docs.cohere.com/v2/docs/rate-limits",
421 },
422 groq: {
423 title: "Groq",
424 provider: "groq",
425 icon: "groq.png",
426 description:
427 "Groq is the fastest LLM provider by a wide margin, using 'LPUs' to serve open-source models at blazing speed.",
428 longDescription:
429 "To get started with Groq, obtain an API key from their website [here](https://wow.groq.com/).",
430 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
431 collectInputFor: [
432 {
433 inputType: "text",
434 key: "apiKey",
435 label: "API Key",
436 placeholder: "Enter your Groq API key",
437 required: true,
438 },
439 ],
440 packages: [
441 models.llama31405bChat,
442 models.llama3170bChat,
443 models.llama318bChat,
444 { ...models.mixtralTrial, title: "Mixtral" },
445 {
446 ...models.AUTODETECT,
447 params: {
448 ...models.AUTODETECT.params,
449 title: "Groq",
450 },
451 },
452 ],
453 apiKeyUrl: "https://console.groq.com/keys",
454 },
455 deepseek: {
456 title: "DeepSeek",
457 provider: "deepseek",
458 icon: "deepseek.png",
459 description:
460 "DeepSeek provides cheap inference of its DeepSeek Coder v2 and other impressive open-source models.",
461 longDescription:
462 "To get started with DeepSeek, obtain an API key from their website [here](https://platform.deepseek.com/api_keys).",
463 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
464 collectInputFor: [
465 {
466 inputType: "text",
467 key: "apiKey",
468 label: "API Key",
469 placeholder: "Enter your DeepSeek API key",
470 required: true,
471 },
472 ],
473 packages: [
474 models.deepseekCoderApi,
475 models.deepseekChatApi,
476 models.deepseekReasonerApi,
477 ],
478 apiKeyUrl: "https://platform.deepseek.com/api_keys",
479 },
480 together: {
481 title: "TogetherAI",
482 provider: "together",
483 refPage: "together",
484 description:
485 "Use the TogetherAI API for extremely fast streaming of open-source models",
486 icon: "together.png",
487 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`,
488 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
489 params: {
490 apiKey: "",
491 },
492 collectInputFor: [
493 {
494 inputType: "text",
495 key: "apiKey",
496 label: "API Key",
497 placeholder: "Enter your TogetherAI API key",
498 required: true,
499 },
500 ...completionParamsInputsConfigs,
501 ],
502 packages: [
503 models.llama31Chat,
504 models.codeLlamaInstruct,
505 models.mistralOs,
506 ].map((p) => {
507 p.params.contextLength = 4096;
508 return p;
509 }),
510 apiKeyUrl: "https://api.together.xyz/settings/api-keys",
511 },
512 ncompass: {
513 title: "nCompass",
514 provider: "ncompass",
515 refPage: "ncompass",
516 description:
517 "Use the nCompass API for extremely fast streaming of open-source models",
518 icon: "ncompass.png",
519 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).`,
520 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
521 params: {
522 apiKey: "",
523 },
524 collectInputFor: [
525 {
526 inputType: "text",
527 key: "apiKey",
528 label: "API Key",
529 placeholder: "Enter your nCompass API key",
530 required: true,
531 },
532 ...completionParamsInputsConfigs,
533 ],
534 packages: [
535 models.llama318bChat,
536 models.llama3370bChat,
537 models.Qwen25Coder32b,
538 ].map((p) => {
539 p.params.contextLength = 4096;
540 return p;
541 }),
542 apiKeyUrl: "https://app.ncompass.tech/api-settings",
543 },
544 novita: {
545 title: "NovitaAI",
546 provider: "novita",
547 refPage: "novita",
548 description:
549 "Use Novita AI API for extremely fast streaming of open-source models",
550 icon: "novita.png",
551 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`,
552 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
553 params: {
554 apiKey: "",
555 },
556 collectInputFor: [
557 {
558 inputType: "text",
559 key: "apiKey",
560 label: "API Key",
561 placeholder: "Enter your Novita AI API key",
562 required: true,
563 },
564 ...completionParamsInputsConfigs,
565 ],
566 packages: [
567 models.llama318BChat,
568 models.mistralChat,
569 models.deepseekR1Chat,
570 models.deepseekV3Chat,
571 ].map((p) => {
572 p.params.contextLength = 4096;
573 return p;
574 }),
575 apiKeyUrl:
576 "https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link",
577 },
578 gemini: {
579 title: "Google Gemini API",
580 provider: "gemini",
581 refPage: "geminiapi",
582 description:
583 "Try out Google's state-of-the-art Gemini model from their API.",
584 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.`,
585 icon: "gemini.png",
586 tags: [ModelProviderTags.RequiresApiKey],
587 collectInputFor: [
588 {
589 inputType: "text",
590 key: "apiKey",
591 label: "API Key",
592 placeholder: "Enter your Gemini API key",
593 required: true,
594 },
595 ],
596 packages: [
597 models.gemini20Flash,
598 models.gemini20FlashLite,
599 models.gemini20FlashImageGeneration,
600 models.gemini25ProExp,
601 models.gemini15Pro,
602 models.geminiPro,
603 models.gemini15Flash,
604 ],
605 apiKeyUrl: "https://aistudio.google.com/app/apikey",
606 },
607 xAI: {
608 title: "xAI",
609 provider: "xAI",
610 icon: "xAI.png",
611 description:
612 "xAI is a company working on building artificial intelligence to accelerate human scientific discovery",
613 longDescription:
614 "To get started with xAI, obtain an API key from their [console](https://console.x.ai/).",
615 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
616 collectInputFor: [
617 {
618 inputType: "text",
619 key: "apiKey",
620 label: "API Key",
621 placeholder: "Enter your xAI API key",
622 required: true,
623 },
624 ],
625 packages: [
626 models.grokCodeFast1,
627 models.grok4FastReasoning,
628 models.grok4FastNonReasoning,
629 models.grok4,
630 models.grok3,
631 models.grok3Mini,
632 ],
633 apiKeyUrl: "https://console.x.ai/",
634 },
635 lemonade: {
636 title: "Lemonade",
637 provider: "lemonade",
638 description:
639 "High-performance local LLM inference with AMD hardware optimization",
640 longDescription:
641 "Lemonade provides optimized local LLM inference with support for AMD NPU, GPU, and CPU acceleration. Visit [lemonade-server.ai](https://lemonade-server.ai/) for installation and setup instructions. Once the Lemonade server is running, you can begin using Continue with your local models.",
642 icon: "lemonade.png",
643 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
644 params: {
645 apiBase: "http://localhost:8000/api/v1/",
646 },
647 packages: [
648 {
649 ...models.AUTODETECT,
650 params: {
651 ...models.AUTODETECT.params,
652 title: "Lemonade",
653 },
654 },
655 ...openSourceModels,
656 ],
657 collectInputFor: [
658 ...completionParamsInputsConfigs,
659 {
660 ...apiBaseInput,
661 defaultValue: "http://localhost:8000/api/v1/",
662 required: true,
663 },
664 ],
665 downloadUrl: "http://lemonade-server.ai",
666 },
667 lmstudio: {
668 title: "LM Studio",
669 provider: "lmstudio",
670 description:
671 "One of the fastest ways to get started with local models on Mac or Windows",
672 longDescription:
673 "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.",
674 icon: "lmstudio.png",
675 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
676 params: {
677 apiBase: "http://localhost:1234/v1/",
678 },
679 packages: [
680 {
681 ...models.AUTODETECT,
682 params: {
683 ...models.AUTODETECT.params,
684 title: "LM Studio",
685 },
686 },
687 ...openSourceModels,
688 ],
689 collectInputFor: [...completionParamsInputsConfigs],
690 downloadUrl: "https://lmstudio.ai/",
691 },
692 llamafile: {
693 title: "llamafile",
694 provider: "llamafile",
695 icon: "llamafile.png",
696 description:
697 "llamafiles are a self-contained binary to run an open-source LLM",
698 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\`\`\``,
699 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
700 packages: openSourceModels,
701 collectInputFor: [...completionParamsInputsConfigs],
702 downloadUrl:
703 "https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart",
704 },
705 replicate: {
706 title: "Replicate",
707 provider: "replicate",
708 refPage: "replicatellm",
709 description: "Use the Replicate API to run open-source models",
710 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`,
711 params: {
712 apiKey: "",
713 },
714 collectInputFor: [
715 {
716 inputType: "text",
717 key: "apiKey",
718 label: "API Key",
719 placeholder: "Enter your Replicate API key",
720 required: true,
721 },
722 ...completionParamsInputsConfigs,
723 ],
724 icon: "replicate.png",
725 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
726 packages: [
727 models.llama3Chat,
728 models.codeLlamaInstruct,
729 models.wizardCoder,
730 models.mistralOs,
731 ],
732 apiKeyUrl: "https://replicate.com/account/api-tokens",
733 },
734 "llama.cpp": {
735 title: "llama.cpp",
736 provider: "llama.cpp",
737 refPage: "llamacpp",
738 description: "If you are running the llama.cpp server from source",
739 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:
740
7411. Clone the repository with \`git clone https://github.com/ggerganov/llama.cpp\`.
7422. \`cd llama.cpp\`
7433. Run \`make\` to build the server.
7444. 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))
7455. Run the llama.cpp server with the command below (replacing with the model you downloaded):
746
747\`\`\`shell
748.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf
749\`\`\`
750
751After it's up and running, you can start using Continue.`,
752 icon: "llamacpp.png",
753 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
754 packages: openSourceModels,
755 collectInputFor: [...completionParamsInputsConfigs],
756 downloadUrl: "https://github.com/ggerganov/llama.cpp",
757 },
758 "openai-aiohttp": {
759 title: "Other OpenAI-compatible API",
760 provider: "openai",
761 description:
762 "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",
763 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:
764
765- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
766- [LocalAI](https://localai.io/basics/getting_started/)
767- [llama-cpp-python](https://github.com/continuedev/ggml-server-example)
768- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,
769 params: {
770 apiBase: "",
771 },
772 collectInputFor: [
773 {
774 ...apiBaseInput,
775 defaultValue: "http://localhost:8000/v1/",
776 },
777 ...completionParamsInputsConfigs,
778 ],
779 icon: "openai.png",
780 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
781 packages: [
782 {
783 ...models.AUTODETECT,
784 params: {
785 ...models.AUTODETECT.params,
786 title: "OpenAI",
787 },
788 },
789 ...openSourceModels,
790 ],
791 },
792 watsonx: {
793 title: "IBM watsonx",
794 provider: "watsonx",
795 refPage: "watsonX",
796 description:
797 "Explore foundation models from IBM and other third-parties depending on your use case.",
798 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.
799
800To 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).`,
801 collectInputFor: [
802 {
803 inputType: "text",
804 key: "apiBase",
805 label: "watsonx URL",
806 placeholder: "e.g. http://us-south.dataplatform.cloud.ibm.com",
807 required: true,
808 },
809 {
810 inputType: "text",
811 key: "projectId",
812 label: "Project ID",
813 placeholder: "Enter your project ID",
814 required: true,
815 },
816 {
817 inputType: "text",
818 key: "apiKey",
819 label: "API key",
820 placeholder: "Enter your API key (SaaS) or ZenApiKey (Software)",
821 required: true,
822 },
823 {
824 inputType: "text",
825 key: "apiVersion",
826 label: "API version",
827 placeholder: "Enter the API Version",
828 defaultValue: "2024-03-14",
829 required: true,
830 },
831 {
832 inputType: "text",
833 key: "deploymentId",
834 label: "Deployment ID",
835 placeholder: "Enter model deployment ID",
836 required: false,
837 },
838 ...completionParamsInputsConfigs,
839 ],
840 apiKeyUrl:
841 "https://dataplatform.cloud.ibm.com/registration/stepone?context=wx",
842 icon: "WatsonX.png",
843 tags: [ModelProviderTags.RequiresApiKey],
844 packages: [
845 models.granite3Instruct8b,
846 models.granite3Instruct2b,
847 models.graniteCode3b,
848 models.graniteCode8b,
849 models.graniteCode20b,
850 models.graniteCode34b,
851 models.graniteChat,
852 models.MistralLarge,
853 models.MetaLlama3,
854 ],
855 },
856 sambanova: {
857 title: "SambaNova",
858 provider: "sambanova",
859 refPage: "sambanova",
860 description: "Use SambaNova Cloud for fast inference performance",
861 icon: "sambanova.png",
862 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)`,
863 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
864 params: {
865 apiKey: "",
866 },
867 collectInputFor: [
868 {
869 inputType: "text",
870 key: "apiKey",
871 label: "API Key",
872 placeholder: "Enter your SambaNova Cloud API key",
873 required: true,
874 },
875 ...completionParamsInputsConfigs,
876 ],
877 packages: [
878 models.llama4Maverick,
879 models.llama3370BInstruct,
880 models.llama33Swallow70BInstruct,
881 models.llama318BInstruct,
882 models.deepseekR1DistillLlama70B,
883 models.deepseekR1,
884 models.deepseekV3,
885 models.deepseekV31,
886 models.qwen332B,
887 models.gptOss120b,
888 ],
889 apiKeyUrl: "https://cloud.sambanova.ai/apis",
890 },
891 cerebras: {
892 title: "Cerebras",
893 provider: "cerebras",
894 icon: "cerebras.png",
895 description:
896 "Cerebras Inference is a custom silicon for fast inference of LLM models.",
897 longDescription: "Get your API key [here](https://cloud.cerebras.ai/).",
898 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
899 collectInputFor: [
900 {
901 inputType: "text",
902 key: "apiKey",
903 label: "API Key",
904 placeholder: "Enter your Cerebras API key",
905 required: true,
906 },
907 ],
908 packages: [
909 models.llama3170bChat,
910 models.llama318bChat,
911 {
912 ...models.AUTODETECT,
913 params: {
914 ...models.AUTODETECT.params,
915 title: "Cerebras",
916 },
917 },
918 ],
919 apiKeyUrl: "https://cloud.cerebras.ai/",
920 },
921 vertexai: {
922 title: "VertexAI",
923 provider: "vertexai",
924 description: "Use supported Vertex AI models",
925 longDescription:
926 "Use the supported Vertex AI models - see [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authenticate",
927 icon: "vertexai.png",
928 packages: [
929 models.VertexGemini15Pro,
930 models.VertexGemini15Flash,
931 models.mistralLarge,
932 ],
933 collectInputFor: [
934 {
935 inputType: "project",
936 key: "projectId",
937 label: "Project Id",
938 placeholder: "Enter your Vertex AI project Id",
939 required: true,
940 },
941 {
942 inputType: "region",
943 key: "region",
944 label: "Region",
945 placeholder: "Enter your Vertex AI region",
946 required: true,
947 },
948
949 ...completionParamsInputsConfigs,
950 ],
951 },
952
953 askSage: {
954 title: "Ask Sage",
955 provider: "askSage",
956 icon: "ask-sage.png",
957 description:
958 "The Ask Sage API provides seamless access to LLMs including OpenAI, Anthropic, Meta, Mistral, and more.",
959 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.`,
960 tags: [ModelProviderTags.RequiresApiKey],
961 params: {
962 apiKey: "",
963 apiBase: "https://api.asksage.ai/server/", // Default base URL
964 },
965 collectInputFor: [
966 {
967 inputType: "text",
968 key: "apiKey",
969 label: "API Key",
970 placeholder: "Enter your Ask Sage API key",
971 required: true,
972 },
973 {
974 inputType: "text",
975 key: "apiBase",
976 label: "API Base URL",
977 placeholder: "Enter the API Base URL",
978 required: true,
979 },
980 ...completionParamsInputsConfigs,
981 ],
982 packages: [
983 models.asksagegpt4ogov,
984 models.asksagegpt4ominigov,
985 models.asksagegpt4gov,
986 models.asksagegpt35gov,
987 models.gpt4o,
988 models.gpt4omini,
989 models.asksagegpt4,
990 models.asksagegpt432,
991 models.asksagegpto1,
992 models.asksagegpto1mini,
993 models.gpt35turbo,
994 models.asksageclaude35gov,
995 models.claude35Sonnet,
996 models.claude3Opus,
997 models.claude3Sonnet,
998 models.grokBeta,
999 models.asksagegroqllama33,
1000 models.asksagegroq70b,
1001 models.mistralLarge,
1002 models.llama370bChat,
1003 models.gemini15Pro,
1004 ],
1005 apiKeyUrl: "https://chat.asksage.ai/",
1006 },
1007 nebius: {
1008 title: "Nebius AI Studio",
1009 provider: "nebius",
1010 refPage: "nebius",
1011 description: "Use the Nebius API to run open-source models",
1012 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`,
1013 params: {
1014 apiKey: "",
1015 },
1016 collectInputFor: [
1017 {
1018 inputType: "text",
1019 key: "apiKey",
1020 label: "API Key",
1021 placeholder: "Enter your Nebius AI Studio API key",
1022 required: true,
1023 },
1024 ...completionParamsInputsConfigs,
1025 ],
1026 icon: "nebius.png",
1027 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1028 packages: [
1029 models.deepseekR1Chat,
1030 models.deepseekV3Chat,
1031 models.QwenQwQ_32b_preview,
1032 models.Qwen25Coder_32b,
1033 models.llama318bChat,
1034 models.llama3170bChat,
1035 models.llama31405bChat,
1036 models.llama3170bNemotron,
1037 models.mistral8x7b,
1038 models.mistral8x22b,
1039 models.mistralNemo,
1040 models.phi3mini,
1041 models.phi3medium,
1042 models.gemma2_2b,
1043 models.gemma2_9b,
1044 models.Qwen2Coder,
1045 models.deepseekCoder2Lite,
1046 models.olmo7b,
1047 ],
1048 apiKeyUrl: "https://studio.nebius.ai/settings/api-keys",
1049 },
1050 siliconflow: {
1051 title: "SiliconFlow",
1052 provider: "siliconflow",
1053 icon: "siliconflow.png",
1054 description: "SiliconFlow provides cheap open-source models.",
1055 longDescription:
1056 "To get started with SiliconFlow, obtain an API key from their website [here](https://cloud.siliconflow.cn/account/ak).",
1057 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1058 collectInputFor: [
1059 {
1060 inputType: "text",
1061 key: "apiKey",
1062 label: "API Key",
1063 placeholder: "Enter your SiliconFlow API key",
1064 required: true,
1065 },
1066 ],
1067 packages: [
1068 models.QwenQwQ_32b_preview,
1069 models.Qwen25Coder_32b,
1070 models.Hunyuan_a52b,
1071 models.Llama31Nemotron_70b,
1072 ],
1073 apiKeyUrl: "https://cloud.siliconflow.cn/account/ak",
1074 },
1075 venice: {
1076 title: "Venice",
1077 provider: "venice",
1078 icon: "venice.png",
1079 description: "Venice.",
1080 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1081 collectInputFor: [
1082 {
1083 inputType: "text",
1084 key: "apiKey",
1085 label: "API Key",
1086 placeholder: "Enter your Venice API key",
1087 required: true,
1088 },
1089 ],
1090 packages: [{ ...models.AUTODETECT }],
1091 apiKeyUrl: "https://venice.ai/chat",
1092 },
1093 tars: {
1094 title: "Tetrate Agent Router Service",
1095 provider: "tars",
1096 icon: "TetrateAgentRouterService.png",
1097 description: "TARS API for fast inference with various models",
1098 tags: [ModelProviderTags.RequiresApiKey],
1099 collectInputFor: [
1100 {
1101 inputType: "text",
1102 key: "apiKey",
1103 label: "API Key",
1104 placeholder: "Enter your Tetrate Agent Router Service API key",
1105 required: true,
1106 },
1107 ],
1108 packages: [
1109 {
1110 ...models.AUTODETECT,
1111 params: {
1112 ...models.AUTODETECT.params,
1113 title: "TARS",
1114 },
1115 },
1116 ],
1117 apiKeyUrl: "https://api.router.tetrate.ai/",
1118 },
1119};