Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 17 additions & 29 deletions src/renderer/src/config/models/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,52 +952,40 @@ export const SYSTEM_MODELS: Record<SystemProviderId | 'defaultModel', Model[]> =
],
minimax: [
{
id: 'abab6.5s-chat',
id: 'MiniMax-M2.5',
provider: 'minimax',
name: 'abab6.5s',
group: 'abab6'
name: 'MiniMax-M2.5',
group: 'M2.5'
},
{
id: 'abab6.5g-chat',
id: 'MiniMax-M2.5-lightning',
provider: 'minimax',
name: 'abab6.5g',
group: 'abab6'
name: 'MiniMax-M2.5-lightning',
group: 'M2.5'
},
{
id: 'abab6.5t-chat',
provider: 'minimax',
name: 'abab6.5t',
group: 'abab6'
},
{
id: 'abab5.5s-chat',
id: 'MiniMax-M2.1',
provider: 'minimax',
name: 'abab5.5s',
group: 'abab5'
name: 'MiniMax-M2.1',
group: 'M2.1'
},
{
id: 'minimax-text-01',
id: 'MiniMax-M2.1-lightning',
provider: 'minimax',
name: 'minimax-01',
group: 'minimax-01'
name: 'MiniMax-M2.1-lightning',
group: 'M2.1'
},
{
id: 'MiniMax-M2',
provider: 'minimax',
name: 'MiniMax M2',
group: 'minimax-m2'
name: 'MiniMax-M2',
group: 'M2'
},
{
id: 'MiniMax-M2-Stable',
provider: 'minimax',
name: 'MiniMax M2 Stable',
group: 'minimax-m2'
},
{
id: 'MiniMax-M2.1',
id: 'M2-her',
provider: 'minimax',
name: 'MiniMax M2.1',
group: 'minimax-m2'
name: 'M2-her',
group: 'M2'
}
],
hyperbolic: [
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/config/models/logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export function getModelLogoById(modelId: string): string | undefined {
jina: isLight ? JinaModelLogo : JinaModelLogoDark,
abab: isLight ? MinimaxModelLogo : MinimaxModelLogoDark,
minimax: isLight ? MinimaxModelLogo : MinimaxModelLogoDark,
'm2-her': isLight ? MinimaxModelLogo : MinimaxModelLogoDark,
veo: isLight ? GeminiModelLogo : GeminiModelLogoDark,
o1: isLight ? ChatGPTo1ModelLogo : ChatGPTo1ModelLogoDark,
o3: isLight ? ChatGPTo1ModelLogo : ChatGPTo1ModelLogoDark,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/config/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export const SYSTEM_PROVIDERS_CONFIG: Record<SystemProviderId, SystemProvider> =
name: 'MiniMax',
type: 'openai',
apiKey: '',
apiHost: 'https://api.minimaxi.com/v1',
apiHost: 'https://api.minimaxi.com/v1/',
anthropicApiHost: 'https://api.minimaxi.com/anthropic',
models: SYSTEM_MODELS.minimax,
isSystem: true,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const persistedReducer = persistReducer(
{
key: 'cherry-studio',
storage,
version: 197,
version: 198,
blacklist: ['runtime', 'messages', 'messageBlocks', 'tabs', 'toolPermissions'],
migrate
},
Expand Down
14 changes: 14 additions & 0 deletions src/renderer/src/store/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,20 @@ const migrateConfig = {
logger.error('migrate 197 error', error as Error)
return state
}
},
'198': (state: RootState) => {
try {
state.llm.providers.forEach((provider) => {
if (provider.id === 'minimax') {
provider.models = SYSTEM_MODELS['minimax']
provider.apiHost = 'https://api.minimaxi.com/v1/'
}
})
return state
} catch (error) {
logger.error('migrate 198 error', error as Error)
return state
}
}
}

Expand Down
Loading