Elffuss BraidHub

kikocis/continue public

627d7d0d1f85 · 33.0 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: [
353 models.commandA032025,
354 models.commandR7BArabic022025,
355 models.commandR7B122024,
356 models.commandRPlus082024,
357 models.commandR082024,
358 models.commandRPlus042024,
359 models.commandR032024,
360 models.c4aiAyaVision32B,
361 models.c4aiAyaVision8B,
362 models.c4aiAyaExpanse32B,
363 models.c4aiAyaExpanse8B,
364 ],
365 apiKeyUrl: "https://docs.cohere.com/v2/docs/rate-limits",
366 },
367 groq: {
368 title: "Groq",
369 provider: "groq",
370 icon: "groq.png",
371 description:
372 "Groq is the fastest LLM provider by a wide margin, using 'LPUs' to serve open-source models at blazing speed.",
373 longDescription:
374 "To get started with Groq, obtain an API key from their website [here](https://wow.groq.com/).",
375 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
376 collectInputFor: [
377 {
378 inputType: "text",
379 key: "apiKey",
380 label: "API Key",
381 placeholder: "Enter your Groq API key",
382 required: true,
383 },
384 ],
385 packages: [
386 models.llama31405bChat,
387 models.llama3170bChat,
388 models.llama318bChat,
389 { ...models.mixtralTrial, title: "Mixtral" },
390 {
391 ...models.AUTODETECT,
392 params: {
393 ...models.AUTODETECT.params,
394 title: "Groq",
395 },
396 },
397 ],
398 apiKeyUrl: "https://console.groq.com/keys",
399 },
400 deepseek: {
401 title: "DeepSeek",
402 provider: "deepseek",
403 icon: "deepseek.png",
404 description:
405 "DeepSeek provides cheap inference of its DeepSeek Coder v2 and other impressive open-source models.",
406 longDescription:
407 "To get started with DeepSeek, obtain an API key from their website [here](https://platform.deepseek.com/api_keys).",
408 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
409 collectInputFor: [
410 {
411 inputType: "text",
412 key: "apiKey",
413 label: "API Key",
414 placeholder: "Enter your DeepSeek API key",
415 required: true,
416 },
417 ],
418 packages: [
419 models.deepseekCoderApi,
420 models.deepseekChatApi,
421 models.deepseekReasonerApi,
422 ],
423 apiKeyUrl: "https://platform.deepseek.com/api_keys",
424 },
425 together: {
426 title: "TogetherAI",
427 provider: "together",
428 refPage: "together",
429 description:
430 "Use the TogetherAI API for extremely fast streaming of open-source models",
431 icon: "together.png",
432 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`,
433 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
434 params: {
435 apiKey: "",
436 },
437 collectInputFor: [
438 {
439 inputType: "text",
440 key: "apiKey",
441 label: "API Key",
442 placeholder: "Enter your TogetherAI API key",
443 required: true,
444 },
445 ...completionParamsInputsConfigs,
446 ],
447 packages: [
448 models.llama31Chat,
449 models.codeLlamaInstruct,
450 models.mistralOs,
451 ].map((p) => {
452 p.params.contextLength = 4096;
453 return p;
454 }),
455 apiKeyUrl: "https://api.together.xyz/settings/api-keys",
456 },
457 ncompass: {
458 title: "nCompass",
459 provider: "ncompass",
460 refPage: "ncompass",
461 description:
462 "Use the nCompass API for extremely fast streaming of open-source models",
463 icon: "ncompass.png",
464 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).`,
465 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
466 params: {
467 apiKey: "",
468 },
469 collectInputFor: [
470 {
471 inputType: "text",
472 key: "apiKey",
473 label: "API Key",
474 placeholder: "Enter your nCompass API key",
475 required: true,
476 },
477 ...completionParamsInputsConfigs,
478 ],
479 packages: [
480 models.llama318bChat,
481 models.llama3370bChat,
482 models.Qwen25Coder32b,
483 ].map((p) => {
484 p.params.contextLength = 4096;
485 return p;
486 }),
487 apiKeyUrl: "https://app.ncompass.tech/api-settings",
488 },
489 novita: {
490 title: "NovitaAI",
491 provider: "novita",
492 refPage: "novita",
493 description:
494 "Use Novita AI API for extremely fast streaming of open-source models",
495 icon: "novita.png",
496 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`,
497 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
498 params: {
499 apiKey: "",
500 },
501 collectInputFor: [
502 {
503 inputType: "text",
504 key: "apiKey",
505 label: "API Key",
506 placeholder: "Enter your Novita AI API key",
507 required: true,
508 },
509 ...completionParamsInputsConfigs,
510 ],
511 packages: [
512 models.llama318BChat,
513 models.mistralChat,
514 models.deepseekR1Chat,
515 models.deepseekV3Chat,
516 ].map((p) => {
517 p.params.contextLength = 4096;
518 return p;
519 }),
520 apiKeyUrl:
521 "https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link",
522 },
523 gemini: {
524 title: "Google Gemini API",
525 provider: "gemini",
526 refPage: "geminiapi",
527 description:
528 "Try out Google's state-of-the-art Gemini model from their API.",
529 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.`,
530 icon: "gemini.png",
531 tags: [ModelProviderTags.RequiresApiKey],
532 collectInputFor: [
533 {
534 inputType: "text",
535 key: "apiKey",
536 label: "API Key",
537 placeholder: "Enter your Gemini API key",
538 required: true,
539 },
540 ],
541 packages: [
542 models.gemini20Flash,
543 models.gemini20FlashLite,
544 models.gemini20FlashImageGeneration,
545 models.gemini25ProExp,
546 models.gemini15Pro,
547 models.geminiPro,
548 models.gemini15Flash,
549 ],
550 apiKeyUrl: "https://aistudio.google.com/app/apikey",
551 },
552 xAI: {
553 title: "xAI",
554 provider: "xAI",
555 icon: "xAI.png",
556 description:
557 "xAI is a company working on building artificial intelligence to accelerate human scientific discovery",
558 longDescription:
559 "To get started with xAI, obtain an API key from their [console](https://console.x.ai/).",
560 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
561 collectInputFor: [
562 {
563 inputType: "text",
564 key: "apiKey",
565 label: "API Key",
566 placeholder: "Enter your xAI API key",
567 required: true,
568 },
569 ],
570 packages: [models.grokBeta],
571 apiKeyUrl: "https://console.x.ai/",
572 },
573 lmstudio: {
574 title: "LM Studio",
575 provider: "lmstudio",
576 description:
577 "One of the fastest ways to get started with local models on Mac or Windows",
578 longDescription:
579 "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.",
580 icon: "lmstudio.png",
581 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
582 params: {
583 apiBase: "http://localhost:1234/v1/",
584 },
585 packages: [
586 {
587 ...models.AUTODETECT,
588 params: {
589 ...models.AUTODETECT.params,
590 title: "LM Studio",
591 },
592 },
593 ...openSourceModels,
594 ],
595 collectInputFor: [...completionParamsInputsConfigs],
596 downloadUrl: "https://lmstudio.ai/",
597 },
598 llamafile: {
599 title: "llamafile",
600 provider: "llamafile",
601 icon: "llamafile.png",
602 description:
603 "llamafiles are a self-contained binary to run an open-source LLM",
604 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\`\`\``,
605 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
606 packages: openSourceModels,
607 collectInputFor: [...completionParamsInputsConfigs],
608 downloadUrl:
609 "https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart",
610 },
611 replicate: {
612 title: "Replicate",
613 provider: "replicate",
614 refPage: "replicatellm",
615 description: "Use the Replicate API to run open-source models",
616 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`,
617 params: {
618 apiKey: "",
619 },
620 collectInputFor: [
621 {
622 inputType: "text",
623 key: "apiKey",
624 label: "API Key",
625 placeholder: "Enter your Replicate API key",
626 required: true,
627 },
628 ...completionParamsInputsConfigs,
629 ],
630 icon: "replicate.png",
631 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
632 packages: [
633 models.llama3Chat,
634 models.codeLlamaInstruct,
635 models.wizardCoder,
636 models.mistralOs,
637 ],
638 apiKeyUrl: "https://replicate.com/account/api-tokens",
639 },
640 "llama.cpp": {
641 title: "llama.cpp",
642 provider: "llama.cpp",
643 refPage: "llamacpp",
644 description: "If you are running the llama.cpp server from source",
645 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:
646
6471. Clone the repository with \`git clone https://github.com/ggerganov/llama.cpp\`.
6482. \`cd llama.cpp\`
6493. Run \`make\` to build the server.
6504. 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))
6515. Run the llama.cpp server with the command below (replacing with the model you downloaded):
652
653\`\`\`shell
654.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf
655\`\`\`
656
657After it's up and running, you can start using Continue.`,
658 icon: "llamacpp.png",
659 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
660 packages: openSourceModels,
661 collectInputFor: [...completionParamsInputsConfigs],
662 downloadUrl: "https://github.com/ggerganov/llama.cpp",
663 },
664 "openai-aiohttp": {
665 title: "Other OpenAI-compatible API",
666 provider: "openai",
667 description:
668 "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",
669 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:
670
671- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
672- [LocalAI](https://localai.io/basics/getting_started/)
673- [llama-cpp-python](https://github.com/continuedev/ggml-server-example)
674- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,
675 params: {
676 apiBase: "",
677 },
678 collectInputFor: [
679 {
680 ...apiBaseInput,
681 defaultValue: "http://localhost:8000/v1/",
682 },
683 ...completionParamsInputsConfigs,
684 ],
685 icon: "openai.png",
686 tags: [ModelProviderTags.Local, ModelProviderTags.OpenSource],
687 packages: [
688 {
689 ...models.AUTODETECT,
690 params: {
691 ...models.AUTODETECT.params,
692 title: "OpenAI",
693 },
694 },
695 ...openSourceModels,
696 ],
697 },
698 watsonx: {
699 title: "IBM watsonx",
700 provider: "watsonx",
701 refPage: "watsonX",
702 description:
703 "Explore foundation models from IBM and other third-parties depending on your use case.",
704 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.
705
706To 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).`,
707 collectInputFor: [
708 {
709 inputType: "text",
710 key: "apiBase",
711 label: "watsonx URL",
712 placeholder: "e.g. http://us-south.dataplatform.cloud.ibm.com",
713 required: true,
714 },
715 {
716 inputType: "text",
717 key: "projectId",
718 label: "Project ID",
719 placeholder: "Enter your project ID",
720 required: true,
721 },
722 {
723 inputType: "text",
724 key: "apiKey",
725 label: "API key",
726 placeholder: "Enter your API key (SaaS) or ZenApiKey (Software)",
727 required: true,
728 },
729 {
730 inputType: "text",
731 key: "apiVersion",
732 label: "API version",
733 placeholder: "Enter the API Version",
734 defaultValue: "2024-03-14",
735 required: true,
736 },
737 {
738 inputType: "text",
739 key: "deploymentId",
740 label: "Deployment ID",
741 placeholder: "Enter model deployment ID",
742 required: false,
743 },
744 ...completionParamsInputsConfigs,
745 ],
746 apiKeyUrl:
747 "https://dataplatform.cloud.ibm.com/registration/stepone?context=wx",
748 icon: "WatsonX.png",
749 tags: [ModelProviderTags.RequiresApiKey],
750 packages: [
751 models.granite3Instruct8b,
752 models.granite3Instruct2b,
753 models.graniteCode3b,
754 models.graniteCode8b,
755 models.graniteCode20b,
756 models.graniteCode34b,
757 models.graniteChat,
758 models.MistralLarge,
759 models.MetaLlama3,
760 ],
761 },
762 sambanova: {
763 title: "SambaNova",
764 provider: "sambanova",
765 refPage: "sambanova",
766 description: "Use SambaNova Cloud for fast inference performance",
767 icon: "sambanova.png",
768 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)`,
769 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
770 params: {
771 apiKey: "",
772 },
773 collectInputFor: [
774 {
775 inputType: "text",
776 key: "apiKey",
777 label: "API Key",
778 placeholder: "Enter your SambaNova Cloud API key",
779 required: true,
780 },
781 ...completionParamsInputsConfigs,
782 ],
783 packages: [
784 models.llama4Scout,
785 models.llama4Maverick,
786 models.llama3370BInstruct,
787 models.llama318BInstruct,
788 models.llama31405BInstruct,
789 models.llama321BInstruct,
790 models.llama323BInstruct,
791 models.qwq32B,
792 models.deepseekR1DistillLlama70B,
793 models.deepseekR1,
794 models.deepseekV3,
795 ],
796 apiKeyUrl: "https://cloud.sambanova.ai/apis",
797 },
798 cerebras: {
799 title: "Cerebras",
800 provider: "cerebras",
801 icon: "cerebras.png",
802 description:
803 "Cerebras Inference is a custom silicon for fast inference of LLM models.",
804 longDescription: "Get your API key [here](https://cloud.cerebras.ai/).",
805 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
806 collectInputFor: [
807 {
808 inputType: "text",
809 key: "apiKey",
810 label: "API Key",
811 placeholder: "Enter your Cerebras API key",
812 required: true,
813 },
814 ],
815 packages: [
816 models.llama3170bChat,
817 models.llama318bChat,
818 {
819 ...models.AUTODETECT,
820 params: {
821 ...models.AUTODETECT.params,
822 title: "Cerebras",
823 },
824 },
825 ],
826 apiKeyUrl: "https://cloud.cerebras.ai/",
827 },
828 vertexai: {
829 title: "VertexAI",
830 provider: "vertexai",
831 description: "Use supported Vertex AI models",
832 longDescription:
833 "Use the supported Vertex AI models - see [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authenticate",
834 icon: "vertexai.png",
835 packages: [
836 models.VertexGemini15Pro,
837 models.VertexGemini15Flash,
838 models.mistralLarge,
839 ],
840 collectInputFor: [
841 {
842 inputType: "project",
843 key: "projectId",
844 label: "Project Id",
845 placeholder: "Enter your Vertex AI project Id",
846 required: true,
847 },
848 {
849 inputType: "region",
850 key: "region",
851 label: "Region",
852 placeholder: "Enter your Vertex AI region",
853 required: true,
854 },
855
856 ...completionParamsInputsConfigs,
857 ],
858 },
859
860 askSage: {
861 title: "Ask Sage",
862 provider: "askSage",
863 icon: "ask-sage.png",
864 description:
865 "The Ask Sage API provides seamless access to LLMs including OpenAI, Anthropic, Meta, Mistral, and more.",
866 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.`,
867 tags: [ModelProviderTags.RequiresApiKey],
868 params: {
869 apiKey: "",
870 apiBase: "https://api.asksage.ai/server/", // Default base URL
871 },
872 collectInputFor: [
873 {
874 inputType: "text",
875 key: "apiKey",
876 label: "API Key",
877 placeholder: "Enter your Ask Sage API key",
878 required: true,
879 },
880 {
881 inputType: "text",
882 key: "apiBase",
883 label: "API Base URL",
884 placeholder: "Enter the API Base URL",
885 required: true,
886 },
887 ...completionParamsInputsConfigs,
888 ],
889 packages: [
890 models.asksagegpt4ogov,
891 models.asksagegpt4ominigov,
892 models.asksagegpt4gov,
893 models.asksagegpt35gov,
894 models.gpt4o,
895 models.gpt4omini,
896 models.asksagegpt4,
897 models.asksagegpt432,
898 models.asksagegpto1,
899 models.asksagegpto1mini,
900 models.gpt35turbo,
901 models.asksageclaude35gov,
902 models.claude35Sonnet,
903 models.claude3Opus,
904 models.claude3Sonnet,
905 models.grokBeta,
906 models.asksagegroqllama33,
907 models.asksagegroq70b,
908 models.mistralLarge,
909 models.llama370bChat,
910 models.gemini15Pro,
911 ],
912 apiKeyUrl: "https://chat.asksage.ai/",
913 },
914 nebius: {
915 title: "Nebius AI Studio",
916 provider: "nebius",
917 refPage: "nebius",
918 description: "Use the Nebius API to run open-source models",
919 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`,
920 params: {
921 apiKey: "",
922 },
923 collectInputFor: [
924 {
925 inputType: "text",
926 key: "apiKey",
927 label: "API Key",
928 placeholder: "Enter your Nebius AI Studio API key",
929 required: true,
930 },
931 ...completionParamsInputsConfigs,
932 ],
933 icon: "nebius.png",
934 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
935 packages: [
936 models.deepseekR1Chat,
937 models.deepseekV3Chat,
938 models.QwenQwQ_32b_preview,
939 models.Qwen25Coder_32b,
940 models.llama318bChat,
941 models.llama3170bChat,
942 models.llama31405bChat,
943 models.llama3170bNemotron,
944 models.mistral8x7b,
945 models.mistral8x22b,
946 models.mistralNemo,
947 models.phi3mini,
948 models.phi3medium,
949 models.gemma2_2b,
950 models.gemma2_9b,
951 models.Qwen2Coder,
952 models.deepseekCoder2Lite,
953 models.olmo7b,
954 ],
955 apiKeyUrl: "https://studio.nebius.ai/settings/api-keys",
956 },
957 siliconflow: {
958 title: "SiliconFlow",
959 provider: "siliconflow",
960 icon: "siliconflow.png",
961 description: "SiliconFlow provides cheap open-source models.",
962 longDescription:
963 "To get started with SiliconFlow, obtain an API key from their website [here](https://cloud.siliconflow.cn/account/ak).",
964 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
965 collectInputFor: [
966 {
967 inputType: "text",
968 key: "apiKey",
969 label: "API Key",
970 placeholder: "Enter your SiliconFlow API key",
971 required: true,
972 },
973 ],
974 packages: [
975 models.QwenQwQ_32b_preview,
976 models.Qwen25Coder_32b,
977 models.Hunyuan_a52b,
978 models.Llama31Nemotron_70b,
979 ],
980 apiKeyUrl: "https://cloud.siliconflow.cn/account/ak",
981 },
982 venice: {
983 title: "Venice",
984 provider: "venice",
985 icon: "venice.png",
986 description: "Venice.",
987 tags: [ModelProviderTags.RequiresApiKey, ModelProviderTags.OpenSource],
988 collectInputFor: [
989 {
990 inputType: "text",
991 key: "apiKey",
992 label: "API Key",
993 placeholder: "Enter your Venice API key",
994 required: true,
995 },
996 ],
997 packages: [{ ...models.AUTODETECT }],
998 apiKeyUrl: "https://venice.ai/chat",
999 },
1000};