Elffuss BraidHub

kikocis/continue public

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