mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 00:49:14 +08:00
fix: minimax new api host & anthropic api support (#11269)
* feat(models): add MiniMax M2 models to default configuration * fix(config): update minimax api host and add anthropic host Update the API endpoint for MiniMax provider and add a new endpoint for Anthropic integration * feat: add minimax to ANTHROPIC_COMPATIBLE_PROVIDER_IDS * docs(ProviderSetting): add todo comment for reset button * fix(store): update minimax provider config in migration 174 Add anthropicApiHost to minimax provider configuration during state migration * fix(store): revert version and remove unused migration Remove migration for version 175 and revert persisted reducer version to 174
This commit is contained in:
parent
d6e7ce330e
commit
45fc6c2afd
@ -1003,6 +1003,18 @@ export const SYSTEM_MODELS: Record<SystemProviderId | 'defaultModel', Model[]> =
|
|||||||
provider: 'minimax',
|
provider: 'minimax',
|
||||||
name: 'minimax-01',
|
name: 'minimax-01',
|
||||||
group: 'minimax-01'
|
group: 'minimax-01'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'MiniMax-M2',
|
||||||
|
provider: 'minimax',
|
||||||
|
name: 'MiniMax M2',
|
||||||
|
group: 'minimax-m2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'MiniMax-M2-Stable',
|
||||||
|
provider: 'minimax',
|
||||||
|
name: 'MiniMax M2 Stable',
|
||||||
|
group: 'minimax-m2'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
hyperbolic: [
|
hyperbolic: [
|
||||||
|
|||||||
@ -472,7 +472,8 @@ export const SYSTEM_PROVIDERS_CONFIG: Record<SystemProviderId, SystemProvider> =
|
|||||||
name: 'MiniMax',
|
name: 'MiniMax',
|
||||||
type: 'openai',
|
type: 'openai',
|
||||||
apiKey: '',
|
apiKey: '',
|
||||||
apiHost: 'https://api.minimax.com/v1/',
|
apiHost: 'https://api.minimaxi.com/v1',
|
||||||
|
anthropicApiHost: 'https://api.minimaxi.com/anthropic',
|
||||||
models: SYSTEM_MODELS.minimax,
|
models: SYSTEM_MODELS.minimax,
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -1072,7 +1073,7 @@ export const PROVIDER_URLS: Record<SystemProviderId, ProviderUrls> = {
|
|||||||
},
|
},
|
||||||
minimax: {
|
minimax: {
|
||||||
api: {
|
api: {
|
||||||
url: 'https://api.minimax.com/v1/'
|
url: 'https://api.minimaxi.com/v1/'
|
||||||
},
|
},
|
||||||
websites: {
|
websites: {
|
||||||
official: 'https://platform.minimaxi.com/',
|
official: 'https://platform.minimaxi.com/',
|
||||||
|
|||||||
@ -81,7 +81,8 @@ const ANTHROPIC_COMPATIBLE_PROVIDER_IDS = [
|
|||||||
SystemProviderIds.aihubmix,
|
SystemProviderIds.aihubmix,
|
||||||
SystemProviderIds.grok,
|
SystemProviderIds.grok,
|
||||||
SystemProviderIds.cherryin,
|
SystemProviderIds.cherryin,
|
||||||
SystemProviderIds.longcat
|
SystemProviderIds.longcat,
|
||||||
|
SystemProviderIds.minimax
|
||||||
] as const
|
] as const
|
||||||
type AnthropicCompatibleProviderId = (typeof ANTHROPIC_COMPATIBLE_PROVIDER_IDS)[number]
|
type AnthropicCompatibleProviderId = (typeof ANTHROPIC_COMPATIBLE_PROVIDER_IDS)[number]
|
||||||
|
|
||||||
@ -547,6 +548,7 @@ const ProviderSetting: FC<Props> = ({ providerId }) => {
|
|||||||
onChange={(e) => setAnthropicHost(e.target.value)}
|
onChange={(e) => setAnthropicHost(e.target.value)}
|
||||||
onBlur={onUpdateAnthropicHost}
|
onBlur={onUpdateAnthropicHost}
|
||||||
/>
|
/>
|
||||||
|
{/* TODO: Add a reset button here. */}
|
||||||
</Space.Compact>
|
</Space.Compact>
|
||||||
<SettingHelpTextRow style={{ flexDirection: 'column', alignItems: 'flex-start', gap: '4px' }}>
|
<SettingHelpTextRow style={{ flexDirection: 'column', alignItems: 'flex-start', gap: '4px' }}>
|
||||||
<SettingHelpText style={{ marginLeft: 6, whiteSpace: 'break-spaces', wordBreak: 'break-all' }}>
|
<SettingHelpText style={{ marginLeft: 6, whiteSpace: 'break-spaces', wordBreak: 'break-all' }}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user