mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
Merge pull request #883 from octo-patch/feat/complete-minimax-provider-support
feat: add MiniMax LLM provider support
This commit is contained in:
commit
ee07ed8168
13 changed files with 123 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ export { default as FireworksAiIcon } from "./fireworksai.svg";
|
|||
export { default as GeminiIcon } from "./gemini.svg";
|
||||
export { default as GroqIcon } from "./groq.svg";
|
||||
export { default as HuggingFaceIcon } from "./huggingface.svg";
|
||||
export { default as MiniMaxIcon } from "./minimax.svg";
|
||||
export { default as MistralIcon } from "./mistral.svg";
|
||||
export { default as MoonshotIcon } from "./moonshot.svg";
|
||||
export { default as NscaleIcon } from "./nscale.svg";
|
||||
|
|
|
|||
1
surfsense_web/components/icons/providers/minimax.svg
Normal file
1
surfsense_web/components/icons/providers/minimax.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.6 4.8h-2.4l-4.2 7.2-3-5.16h-.01L9 12 4.8 4.8H2.4L9 16.14V20.4h2.4v-4.2h1.2v4.2h2.4v-4.26z"/></svg>
|
||||
|
After Width: | Height: | Size: 192 B |
|
|
@ -1525,6 +1525,20 @@ export const LLM_MODELS: LLMModel[] = [
|
|||
provider: "GITHUB_MODELS",
|
||||
contextWindow: "64K",
|
||||
},
|
||||
|
||||
// MiniMax
|
||||
{
|
||||
value: "MiniMax-M2.5",
|
||||
label: "MiniMax M2.5",
|
||||
provider: "MINIMAX",
|
||||
contextWindow: "204K",
|
||||
},
|
||||
{
|
||||
value: "MiniMax-M2.5-highspeed",
|
||||
label: "MiniMax M2.5 Highspeed",
|
||||
provider: "MINIMAX",
|
||||
contextWindow: "204K",
|
||||
},
|
||||
];
|
||||
|
||||
// Helper function to get models by provider
|
||||
|
|
|
|||
|
|
@ -181,6 +181,13 @@ export const LLM_PROVIDERS: LLMProvider[] = [
|
|||
description: "AI models from GitHub Marketplace",
|
||||
apiBase: "https://models.github.ai/inference",
|
||||
},
|
||||
{
|
||||
value: "MINIMAX",
|
||||
label: "MiniMax",
|
||||
example: "MiniMax-M2.5, MiniMax-M2.5-highspeed",
|
||||
description: "High-performance models with 204K context",
|
||||
apiBase: "https://api.minimax.io/v1",
|
||||
},
|
||||
{
|
||||
value: "CUSTOM",
|
||||
label: "Custom Provider",
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ export const liteLLMProviderEnum = z.enum([
|
|||
"COMETAPI",
|
||||
"HUGGINGFACE",
|
||||
"GITHUB_MODELS",
|
||||
"MINIMAX",
|
||||
"CUSTOM",
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import {
|
|||
GeminiIcon,
|
||||
GroqIcon,
|
||||
HuggingFaceIcon,
|
||||
MiniMaxIcon,
|
||||
MistralIcon,
|
||||
MoonshotIcon,
|
||||
NscaleIcon,
|
||||
|
|
@ -85,6 +86,8 @@ export function getProviderIcon(
|
|||
return <GroqIcon className={cn(className)} />;
|
||||
case "HUGGINGFACE":
|
||||
return <HuggingFaceIcon className={cn(className)} />;
|
||||
case "MINIMAX":
|
||||
return <MiniMaxIcon className={cn(className)} />;
|
||||
case "MISTRAL":
|
||||
return <MistralIcon className={cn(className)} />;
|
||||
case "MOONSHOT":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue