feat: add MiniMax provider settings types

This commit is contained in:
Octopus 2026-03-15 21:11:52 +08:00
parent 8a85f751b4
commit 52d7abe4c2

View file

@ -106,6 +106,9 @@ export const displayInfoOfProviderName = (providerName: ProviderName): DisplayIn
else if (providerName === 'awsBedrock') {
return { title: 'AWS Bedrock', }
}
else if (providerName === 'minimax') {
return { title: 'MiniMax', }
}
throw new Error(`descOfProviderName: Unknown provider name: "${providerName}"`)
}
@ -128,6 +131,7 @@ export const subTextMdOfProviderName = (providerName: ProviderName): string => {
if (providerName === 'vLLM') return 'Read more about custom [Endpoints here](https://docs.vllm.ai/en/latest/getting_started/quickstart.html#openai-compatible-server).'
if (providerName === 'lmStudio') return 'Read more about custom [Endpoints here](https://lmstudio.ai/docs/app/api/endpoints/openai).'
if (providerName === 'liteLLM') return 'Read more about endpoints [here](https://docs.litellm.ai/docs/providers/openai_compatible).'
if (providerName === 'minimax') return 'Get your [API Key here](https://platform.minimax.io). Read more about [models here](https://platform.minimax.io/docs/api-reference/text-openai-api).'
throw new Error(`subTextMdOfProviderName: Unknown provider name: "${providerName}"`)
}
@ -156,6 +160,7 @@ export const displayInfoOfSettingName = (providerName: ProviderName, settingName
providerName === 'googleVertex' ? 'AIzaSy...' :
providerName === 'microsoftAzure' ? 'key-...' :
providerName === 'awsBedrock' ? 'key-...' :
providerName === 'minimax' ? 'eyJhbGci...' :
'',
isPasswordField: true,
@ -352,6 +357,12 @@ export const defaultSettingsOfProvider: SettingsOfProvider = {
...modelInfoOfDefaultModelNames(defaultModelsOfProvider.awsBedrock),
_didFillInProviderSettings: undefined,
},
minimax: {
...defaultCustomSettings,
...defaultProviderSettings.minimax,
...modelInfoOfDefaultModelNames(defaultModelsOfProvider.minimax),
_didFillInProviderSettings: undefined,
},
}