Elffuss BraidHub

kikocis/continue public

a95c52aaa678 · 36.6 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: [models.grokBeta],
626 apiKeyUrl: "https://console.x.ai/",
627 },
628 lemonade: {
629 title: "Lemonade",
630 provider: "lemonade",
631 description:
632 "High-performance local LLM inference with AMD hardware optimization",
633 longDescription:
634 "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.",
635 icon: "lemonade.png",
636 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
637 params: {
638 apiBase: "http://localhost:8000/api/v1/",
639 },
640 packages: [
641 {
642 ...models.AUTODETECT,
643 params: {
644 ...models.AUTODETECT.params,
645 title: "Lemonade",
646 },
647 },
648 ...openSourceModels,
649 ],
650 collectInputFor: [
651 ...completionParamsInputsConfigs,
652 {
653 ...apiBaseInput,
654 defaultValue: "http://localhost:8000/api/v1/",
655 required: true,
656 },
657 ],
658 downloadUrl: "http://lemonade-server.ai",
659 },
660 lmstudio: {
661 title: "LM Studio",
662 provider: "lmstudio",
663 description:
664 "One of the fastest ways to get started with local models on Mac or Windows",
665 longDescription:
666 "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.",
667 icon: "lmstudio.png",
668 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
669 params: {
670 apiBase: "http://localhost:1234/v1/",
671 },
672 packages: [
673 {
674 ...models.AUTODETECT,
675 params: {
676 ...models.AUTODETECT.params,
677 title: "LM Studio",
678 },
679 },
680 ...openSourceModels,
681 ],
682 collectInputFor: [...completionParamsInputsConfigs],
683 downloadUrl: "https://lmstudio.ai/",
684 },
685 llamafile: {
686 title: "llamafile",
687 provider: "llamafile",
688 icon: "llamafile.png",
689 description:
690 "llamafiles are a self-contained binary to run an open-source LLM",
691 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\`\`\``,
692 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
693 packages: openSourceModels,
694 collectInputFor: [...completionParamsInputsConfigs],
695 downloadUrl:
696 "https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart",
697 },
698 replicate: {
699 title: "Replicate",
700 provider: "replicate",
701 refPage: "replicatellm",
702 description: "Use the Replicate API to run open-source models",
703 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`,
704 params: {
705 apiKey: "",
706 },
707 collectInputFor: [
708 {
709 inputType: "text",
710 key: "apiKey",
711 label: "API Key",
712 placeholder: "Enter your Replicate API key",
713 required: true,
714 },
715 ...completionParamsInputsConfigs,
716 ],
717 icon: "replicate.png",
718 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
719 packages: [
720 models.llama3Chat,
721 models.codeLlamaInstruct,
722 models.wizardCoder,
723 models.mistralOs,
724 ],
725 apiKeyUrl: "https://replicate.com/account/api-tokens",
726 },
727 "llama.cpp": {
728 title: "llama.cpp",
729 provider: "llama.cpp",
730 refPage: "llamacpp",
731 description: "If you are running the llama.cpp server from source",
732 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:
733
7341. Clone the repository with \`git clone https://github.com/ggerganov/llama.cpp\`.
7352. \`cd llama.cpp\`
7363. Run \`make\` to build the server.
7374. 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))
7385. Run the llama.cpp server with the command below (replacing with the model you downloaded):
739
740\`\`\`shell
741.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf
742\`\`\`
743
744After it's up and running, you can start using Continue.`,
745 icon: "llamacpp.png",
746 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
747 packages: openSourceModels,
748 collectInputFor: [...completionParamsInputsConfigs],
749 downloadUrl: "https://github.com/ggerganov/llama.cpp",
750 },
751 "openai-aiohttp": {
752 title: "Other OpenAI-compatible API",
753 provider: "openai",
754 description:
755 "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",
756 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:
757
758- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
759- [LocalAI](https://localai.io/basics/getting_started/)
760- [llama-cpp-python](https://github.com/continuedev/ggml-server-example)
761- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,
762 params: {
763 apiBase: "",
764 },
765 collectInputFor: [
766 {
767 ...apiBaseInput,
768 defaultValue: "http://localhost:8000/v1/",
769 },
770 ...completionParamsInputsConfigs,
771 ],
772 icon: "openai.png",
773 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
774 packages: [
775 {
776 ...models.AUTODETECT,
777 params: {
778 ...models.AUTODETECT.params,
779 title: "OpenAI",
780 },
781 },
782 ...openSourceModels,
783 ],
784 },
785 watsonx: {
786 title: "IBM watsonx",
787 provider: "watsonx",
788 refPage: "watsonX",
789 description:
790 "Explore foundation models from IBM and other third-parties depending on your use case.",
791 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.
792
793To 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).`,
794 collectInputFor: [
795 {
796 inputType: "text",
797 key: "apiBase",
798 label: "watsonx URL",
799 placeholder: "e.g. http://us-south.dataplatform.cloud.ibm.com",
800 required: true,
801 },
802 {
803 inputType: "text",
804 key: "projectId",
805 label: "Project ID",
806 placeholder: "Enter your project ID",
807 required: true,
808 },
809 {
810 inputType: "text",
811 key: "apiKey",
812 label: "API key",
813 placeholder: "Enter your API key (SaaS) or ZenApiKey (Software)",
814 required: true,
815 },
816 {
817 inputType: "text",
818 key: "apiVersion",
819 label: "API version",
820 placeholder: "Enter the API Version",
821 defaultValue: "2024-03-14",
822 required: true,
823 },
824 {
825 inputType: "text",
826 key: "deploymentId",
827 label: "Deployment ID",
828 placeholder: "Enter model deployment ID",
829 required: false,
830 },
831 ...completionParamsInputsConfigs,
832 ],
833 apiKeyUrl:
834 "https://dataplatform.cloud.ibm.com/registration/stepone?context=wx",
835 icon: "WatsonX.png",
836 tags: [ModelProviderTags.RequiresApiKey],
837 packages: [
838 models.granite3Instruct8b,
839 models.granite3Instruct2b,
840 models.graniteCode3b,
841 models.graniteCode8b,
842 models.graniteCode20b,
843 models.graniteCode34b,
844 models.graniteChat,
845 models.MistralLarge,
846 models.MetaLlama3,
847 ],
848 },
849 sambanova: {
850 title: "SambaNova",
851 provider: "sambanova",
852 refPage: "sambanova",
853 description: "Use SambaNova Cloud for fast inference performance",
854 icon: "sambanova.png",
855 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)`,
856 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
857 params: {
858 apiKey: "",
859 },
860 collectInputFor: [
861 {
862 inputType: "text",
863 key: "apiKey",
864 label: "API Key",
865 placeholder: "Enter your SambaNova Cloud API key",
866 required: true,
867 },
868 ...completionParamsInputsConfigs,
869 ],
870 packages: [
871 models.llama4Maverick,
872 models.llama3370BInstruct,
873 models.llama33Swallow70BInstruct,
874 models.llama318BInstruct,
875 models.deepseekR1DistillLlama70B,
876 models.deepseekR1,
877 models.deepseekV3,
878 models.deepseekV31,
879 models.qwen332B,
880 models.gptOss120b,
881 ],
882 apiKeyUrl: "https://cloud.sambanova.ai/apis",
883 },
884 cerebras: {
885 title: "Cerebras",
886 provider: "cerebras",
887 icon: "cerebras.png",
888 description:
889 "Cerebras Inference is a custom silicon for fast inference of LLM models.",
890 longDescription: "Get your API key [here](https://cloud.cerebras.ai/).",
891 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
892 collectInputFor: [
893 {
894 inputType: "text",
895 key: "apiKey",
896 label: "API Key",
897 placeholder: "Enter your Cerebras API key",
898 required: true,
899 },
900 ],
901 packages: [
902 models.llama3170bChat,
903 models.llama318bChat,
904 {
905 ...models.AUTODETECT,
906 params: {
907 ...models.AUTODETECT.params,
908 title: "Cerebras",
909 },
910 },
911 ],
912 apiKeyUrl: "https://cloud.cerebras.ai/",
913 },
914 vertexai: {
915 title: "VertexAI",
916 provider: "vertexai",
917 description: "Use supported Vertex AI models",
918 longDescription:
919 "Use the supported Vertex AI models - see [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authenticate",
920 icon: "vertexai.png",
921 packages: [
922 models.VertexGemini15Pro,
923 models.VertexGemini15Flash,
924 models.mistralLarge,
925 ],
926 collectInputFor: [
927 {
928 inputType: "project",
929 key: "projectId",
930 label: "Project Id",
931 placeholder: "Enter your Vertex AI project Id",
932 required: true,
933 },
934 {
935 inputType: "region",
936 key: "region",
937 label: "Region",
938 placeholder: "Enter your Vertex AI region",
939 required: true,
940 },
941
942 ...completionParamsInputsConfigs,
943 ],
944 },
945
946 askSage: {
947 title: "Ask Sage",
948 provider: "askSage",
949 icon: "ask-sage.png",
950 description:
951 "The Ask Sage API provides seamless access to LLMs including OpenAI, Anthropic, Meta, Mistral, and more.",
952 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.`,
953 tags: [ModelProviderTags.RequiresApiKey],
954 params: {
955 apiKey: "",
956 apiBase: "https://api.asksage.ai/server/", // Default base URL
957 },
958 collectInputFor: [
959 {
960 inputType: "text",
961 key: "apiKey",
962 label: "API Key",
963 placeholder: "Enter your Ask Sage API key",
964 required: true,
965 },
966 {
967 inputType: "text",
968 key: "apiBase",
969 label: "API Base URL",
970 placeholder: "Enter the API Base URL",
971 required: true,
972 },
973 ...completionParamsInputsConfigs,
974 ],
975 packages: [
976 models.asksagegpt4ogov,
977 models.asksagegpt4ominigov,
978 models.asksagegpt4gov,
979 models.asksagegpt35gov,
980 models.gpt4o,
981 models.gpt4omini,
982 models.asksagegpt4,
983 models.asksagegpt432,
984 models.asksagegpto1,
985 models.asksagegpto1mini,
986 models.gpt35turbo,
987 models.asksageclaude35gov,
988 models.claude35Sonnet,
989 models.claude3Opus,
990 models.claude3Sonnet,
991 models.grokBeta,
992 models.asksagegroqllama33,
993 models.asksagegroq70b,
994 models.mistralLarge,
995 models.llama370bChat,
996 models.gemini15Pro,
997 ],
998 apiKeyUrl: "https://chat.asksage.ai/",
999 },
1000 nebius: {
1001 title: "Nebius AI Studio",
1002 provider: "nebius",
1003 refPage: "nebius",
1004 description: "Use the Nebius API to run open-source models",
1005 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`,
1006 params: {
1007 apiKey: "",
1008 },
1009 collectInputFor: [
1010 {
1011 inputType: "text",
1012 key: "apiKey",
1013 label: "API Key",
1014 placeholder: "Enter your Nebius AI Studio API key",
1015 required: true,
1016 },
1017 ...completionParamsInputsConfigs,
1018 ],
1019 icon: "nebius.png",
1020 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1021 packages: [
1022 models.deepseekR1Chat,
1023 models.deepseekV3Chat,
1024 models.QwenQwQ_32b_preview,
1025 models.Qwen25Coder_32b,
1026 models.llama318bChat,
1027 models.llama3170bChat,
1028 models.llama31405bChat,
1029 models.llama3170bNemotron,
1030 models.mistral8x7b,
1031 models.mistral8x22b,
1032 models.mistralNemo,
1033 models.phi3mini,
1034 models.phi3medium,
1035 models.gemma2_2b,
1036 models.gemma2_9b,
1037 models.Qwen2Coder,
1038 models.deepseekCoder2Lite,
1039 models.olmo7b,
1040 ],
1041 apiKeyUrl: "https://studio.nebius.ai/settings/api-keys",
1042 },
1043 siliconflow: {
1044 title: "SiliconFlow",
1045 provider: "siliconflow",
1046 icon: "siliconflow.png",
1047 description: "SiliconFlow provides cheap open-source models.",
1048 longDescription:
1049 "To get started with SiliconFlow, obtain an API key from their website [here](https://cloud.siliconflow.cn/account/ak).",
1050 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1051 collectInputFor: [
1052 {
1053 inputType: "text",
1054 key: "apiKey",
1055 label: "API Key",
1056 placeholder: "Enter your SiliconFlow API key",
1057 required: true,
1058 },
1059 ],
1060 packages: [
1061 models.QwenQwQ_32b_preview,
1062 models.Qwen25Coder_32b,
1063 models.Hunyuan_a52b,
1064 models.Llama31Nemotron_70b,
1065 ],
1066 apiKeyUrl: "https://cloud.siliconflow.cn/account/ak",
1067 },
1068 venice: {
1069 title: "Venice",
1070 provider: "venice",
1071 icon: "venice.png",
1072 description: "Venice.",
1073 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
1074 collectInputFor: [
1075 {
1076 inputType: "text",
1077 key: "apiKey",
1078 label: "API Key",
1079 placeholder: "Enter your Venice API key",
1080 required: true,
1081 },
1082 ],
1083 packages: [{ ...models.AUTODETECT }],
1084 apiKeyUrl: "https://venice.ai/chat",
1085 },
1086 tars: {
1087 title: "Tetrate Agent Router Service",
1088 provider: "tars",
1089 icon: "TetrateAgentRouterService.png",
1090 description: "TARS API for fast inference with various models",
1091 tags: [ModelProviderTags.RequiresApiKey],
1092 collectInputFor: [
1093 {
1094 inputType: "text",
1095 key: "apiKey",
1096 label: "API Key",
1097 placeholder: "Enter your Tetrate Agent Router Service API key",
1098 required: true,
1099 },
1100 ],
1101 packages: [
1102 {
1103 ...models.AUTODETECT,
1104 params: {
1105 ...models.AUTODETECT.params,
1106 title: "TARS",
1107 },
1108 },
1109 ],
1110 apiKeyUrl: "https://api.router.tetrate.ai/",
1111 },
1112};