fix: Minimax API is error! #1353 (#1585)

### What problem does this PR solve?

fix: Minimax API is error! #1353

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-07-18 12:09:25 +08:00 committed by GitHub
parent 478cd006d6
commit fc8a752cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -77,7 +77,7 @@ const ApiKeyModal = ({
<Input placeholder="https://api.openai.com/v1" />
</Form.Item>
)}
{llmFactory === 'Minimax' && (
{llmFactory.toLowerCase() === 'Minimax'.toLowerCase() && (
<Form.Item<FieldType> label={'Group ID'} name="group_id">
<Input />
</Form.Item>

View File

@ -45,6 +45,7 @@ import OllamaModal from './ollama-modal';
import SystemModelSettingModal from './system-model-setting-modal';
import VolcEngineModal from './volcengine-model';
// Please lowercase the file name
const IconMap = {
'Tongyi-Qianwen': 'tongyi',
Moonshot: 'moonshot',
@ -57,12 +58,12 @@ const IconMap = {
VolcEngine: 'volc_engine',
BaiChuan: 'baichuan',
Jina: 'jina',
Minimax: 'chat-minimax',
MiniMax: 'chat-minimax',
Mistral: 'mistral',
'Azure-OpenAI': 'azure',
Bedrock: 'bedrock',
Gemini: 'gemini',
Groq: 'Groq',
Groq: 'groq-next',
OpenRouter: 'open-router',
};