Refa: add MiniMax-M2 and remove deprecated MiniMax models (#11642)

### What problem does this PR solve?

Add MiniMax-M2 and remove deprecated models.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring
This commit is contained in:
Yongteng Lei
2025-12-02 14:43:44 +08:00
committed by GitHub
parent 519f03097e
commit a713f54732
15 changed files with 62 additions and 112 deletions

View File

@ -34,6 +34,7 @@ const modelsWithBaseUrl = [
LLMFactory.OpenAI,
LLMFactory.AzureOpenAI,
LLMFactory.TongYiQianWen,
LLMFactory.MiniMax,
];
const ApiKeyModal = ({
@ -109,7 +110,16 @@ const ApiKeyModal = ({
name="base_url"
render={({ field }) => (
<FormItem>
<FormLabel className="text-sm font-medium text-text-primary">
<FormLabel
className="text-sm font-medium text-text-primary"
tooltip={
llmFactory === LLMFactory.MiniMax
? t('minimaxBaseUrlTip')
: llmFactory === LLMFactory.TongYiQianWen
? t('tongyiBaseUrlTip')
: t('baseUrlTip')
}
>
{t('baseUrl')}
</FormLabel>
<FormControl>
@ -118,7 +128,9 @@ const ApiKeyModal = ({
placeholder={
llmFactory === LLMFactory.TongYiQianWen
? t('tongyiBaseUrlPlaceholder')
: 'https://api.openai.com/v1'
: llmFactory === LLMFactory.MiniMax
? t('minimaxBaseUrlPlaceholder')
: 'https://api.openai.com/v1'
}
onKeyDown={handleKeyDown}
className="w-full"