Elffuss BraidHub

kikocis/continue public

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