Elffuss BraidHub

kikocis/continue public

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