feat: enhance provider functionality with base URL normalization and API protocol support; add tests for provider creation

This commit is contained in:
duanshuwen
2026-04-20 23:51:01 +08:00
parent 301f7d33ed
commit 6ac4bf1dd9
8 changed files with 126 additions and 150 deletions

View File

@@ -181,6 +181,8 @@ export const PROVIDER_TYPE_INFO: ProviderTypeInfo[] = [
requiresApiKey: false,
isOAuth: true,
supportsApiKey: true,
defaultBaseUrl: 'https://api.minimaxi.com/v1',
apiProtocol: 'openai-completions',
defaultModelId: 'MiniMax-M2.7',
showModelId: true,
showModelIdInDevModeOnly: true,
@@ -235,6 +237,8 @@ export const PROVIDER_TYPE_INFO: ProviderTypeInfo[] = [
requiresApiKey: false,
isOAuth: true,
supportsApiKey: true,
defaultBaseUrl: 'https://api.minimax.io/v1',
apiProtocol: 'openai-completions',
defaultModelId: 'MiniMax-M2.7',
showModelId: true,
showModelIdInDevModeOnly: true,