balibabu
		
	commited on
		
		
					Commit 
							
							·
						
						486f207
	
1
								Parent(s):
							
							f59e210
								
fix: Minimax API is error! #1353 (#1585)
Browse files### 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)
    	
        web/src/assets/svg/llm/{Groq.svg → groq-next.svg}
    RENAMED
    
    | 
											File without changes
										 | 
    	
        web/src/pages/user-setting/setting-model/api-key-modal/index.tsx
    CHANGED
    
    | @@ -77,7 +77,7 @@ const ApiKeyModal = ({ | |
| 77 | 
             
                        <Input placeholder="https://api.openai.com/v1" />
         | 
| 78 | 
             
                      </Form.Item>
         | 
| 79 | 
             
                    )}
         | 
| 80 | 
            -
                    {llmFactory === 'Minimax' && (
         | 
| 81 | 
             
                      <Form.Item<FieldType> label={'Group ID'} name="group_id">
         | 
| 82 | 
             
                        <Input />
         | 
| 83 | 
             
                      </Form.Item>
         | 
|  | |
| 77 | 
             
                        <Input placeholder="https://api.openai.com/v1" />
         | 
| 78 | 
             
                      </Form.Item>
         | 
| 79 | 
             
                    )}
         | 
| 80 | 
            +
                    {llmFactory.toLowerCase() === 'Minimax'.toLowerCase() && (
         | 
| 81 | 
             
                      <Form.Item<FieldType> label={'Group ID'} name="group_id">
         | 
| 82 | 
             
                        <Input />
         | 
| 83 | 
             
                      </Form.Item>
         | 
    	
        web/src/pages/user-setting/setting-model/index.tsx
    CHANGED
    
    | @@ -45,6 +45,7 @@ import OllamaModal from './ollama-modal'; | |
| 45 | 
             
            import SystemModelSettingModal from './system-model-setting-modal';
         | 
| 46 | 
             
            import VolcEngineModal from './volcengine-model';
         | 
| 47 |  | 
|  | |
| 48 | 
             
            const IconMap = {
         | 
| 49 | 
             
              'Tongyi-Qianwen': 'tongyi',
         | 
| 50 | 
             
              Moonshot: 'moonshot',
         | 
| @@ -57,12 +58,12 @@ const IconMap = { | |
| 57 | 
             
              VolcEngine: 'volc_engine',
         | 
| 58 | 
             
              BaiChuan: 'baichuan',
         | 
| 59 | 
             
              Jina: 'jina',
         | 
| 60 | 
            -
               | 
| 61 | 
             
              Mistral: 'mistral',
         | 
| 62 | 
             
              'Azure-OpenAI': 'azure',
         | 
| 63 | 
             
              Bedrock: 'bedrock',
         | 
| 64 | 
             
              Gemini: 'gemini',
         | 
| 65 | 
            -
              Groq: ' | 
| 66 | 
             
              OpenRouter: 'open-router',
         | 
| 67 | 
             
            };
         | 
| 68 |  | 
|  | |
| 45 | 
             
            import SystemModelSettingModal from './system-model-setting-modal';
         | 
| 46 | 
             
            import VolcEngineModal from './volcengine-model';
         | 
| 47 |  | 
| 48 | 
            +
            // Please lowercase the file name
         | 
| 49 | 
             
            const IconMap = {
         | 
| 50 | 
             
              'Tongyi-Qianwen': 'tongyi',
         | 
| 51 | 
             
              Moonshot: 'moonshot',
         | 
|  | |
| 58 | 
             
              VolcEngine: 'volc_engine',
         | 
| 59 | 
             
              BaiChuan: 'baichuan',
         | 
| 60 | 
             
              Jina: 'jina',
         | 
| 61 | 
            +
              MiniMax: 'chat-minimax',
         | 
| 62 | 
             
              Mistral: 'mistral',
         | 
| 63 | 
             
              'Azure-OpenAI': 'azure',
         | 
| 64 | 
             
              Bedrock: 'bedrock',
         | 
| 65 | 
             
              Gemini: 'gemini',
         | 
| 66 | 
            +
              Groq: 'groq-next',
         | 
| 67 | 
             
              OpenRouter: 'open-router',
         | 
| 68 | 
             
            };
         | 
| 69 |  |