Skip to content

Conversation

@apoorvdarshan
Copy link

Global region users with API keys (sk-cp-...) were getting "credentials invalid" errors because the fetcher used a hardcoded China endpoint.

image
  • Add apiBaseURLString and apiRemainsURL to MiniMaxAPIRegion for region-specific API hosts (api.minimax.io vs api.minimaxi.com)
  • Update fetchUsage(apiToken:) to accept region parameter
  • Pass region from settings through MiniMaxAPIFetchStrategy
  • Make API region picker always visible in settings UI

Fixes #276

Image

on minimax official website (for confirmation)
Image

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24ffd12ff9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@apoorvdarshan apoorvdarshan force-pushed the fix/minimax-global-region branch from 24ffd12 to b60a078 Compare January 30, 2026 23:00
@apoorvdarshan
Copy link
Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b60a078708

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Global region users with API keys (sk-cp-...) were getting "credentials
invalid" errors because the fetcher used a hardcoded China endpoint.

- Add apiBaseURLString and apiRemainsURL to MiniMaxAPIRegion for
  region-specific API hosts (api.minimax.io vs api.minimaxi.com)
- Update fetchUsage(apiToken:) to accept region parameter
- Pass region from settings through MiniMaxAPIFetchStrategy
- Make API region picker always visible in settings UI
- Default to global when settings are absent (CLI/library contexts)

Fixes steipete#276
@apoorvdarshan apoorvdarshan force-pushed the fix/minimax-global-region branch from b60a078 to 726ffb0 Compare January 30, 2026 23:09
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.

can't fetch minimax usage

1 participant