feat: update MiniMax API endpoint to China region (api.minimaxi.com)#389
feat: update MiniMax API endpoint to China region (api.minimaxi.com)#389socamalo wants to merge 1 commit intocampfirein:mainfrom
Conversation
Change MiniMax API base URL from api.minimax.io to api.minimaxi.com to support China region access. Files updated: - src/agent/infra/llm/providers/minimax.ts - src/server/core/domain/entities/provider-registry.ts - src/server/infra/http/provider-model-fetcher-registry.ts
|
Hey, thanks for looking into this! Supporting MiniMax's China region is a great idea. One thing worth noting: MiniMax maintains two separate regional endpoints with region-specific API keys. From their official AI Coding Tools guide:
API keys are also obtained from different platforms depending on region:
Since the current change replaces the global endpoint with the China one, existing international users would likely start seeing auth errors after updating. Instead of swapping the default, it'd be great to support both regions. Here's what we have in mind for the user experience: TUI (
|
Summary
Update MiniMax API base URL from
api.minimax.iotoapi.minimaxi.comto support China region access.Changes
src/agent/infra/llm/providers/minimax.ts: Update baseUrl in provider config and createGeneratorsrc/server/core/domain/entities/provider-registry.ts: Update baseUrl in PROVIDER_REGISTRYsrc/server/infra/http/provider-model-fetcher-registry.ts: Update baseUrl in model fetcherTesting