Skip to content

fix: route MiniMax through OpenAI-compatible endpoint - #168

Closed
Marenz wants to merge 1 commit into
spacedriveapp:mainfrom
Marenz:fix/minimax-openai-endpoint
Closed

fix: route MiniMax through OpenAI-compatible endpoint#168
Marenz wants to merge 1 commit into
spacedriveapp:mainfrom
Marenz:fix/minimax-openai-endpoint

Conversation

@Marenz

@Marenz Marenz commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

MiniMax was configured as ApiType::Anthropic, causing requests to be sent to api.anthropic.com with a MiniMax API key — resulting in 401 invalid x-api-key errors.

MiniMax exposes an OpenAI-compatible endpoint at api.minimax.io. Switching to ApiType::OpenAiCompletions with that base URL fixes the routing.

Also corrects the MINIMAX_PROVIDER_BASE_URL constant — previously had /anthropic appended, which was only valid for the Anthropic-compatible path that we're no longer using.

MiniMax was configured as ApiType::Anthropic, but build_anthropic_request
hardcodes api.anthropic.com. Requests were sent to Anthropic with a
MiniMax key, producing 401 invalid x-api-key.

Switch to ApiType::OpenAiCompletions with base_url api.minimax.io —
their OpenAI-compatible endpoint works correctly.
@Marenz

Marenz commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator Author

Duplicate of #84 — same fix.

@Marenz Marenz closed this Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant