Elffuss BraidHub

kikocis/continue public

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