-
Notifications
You must be signed in to change notification settings - Fork 75
fix(providers): minimax connection issue, and print out api_base while configuring #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d063840
081d4d9
79fe143
5c68eb8
250d223
80faa75
2af3bef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -488,6 +488,22 @@ def claims(self, model: str) -> bool: | |
| # /v1/models before any LiteLLM call resolves an endpoint. | ||
| default_api_base="https://api.minimax.io/v1", | ||
| ), | ||
| ProviderSpec( | ||
| name="minimaxi", | ||
| keywords=("minimaxi",), | ||
| env_key="MINIMAX_API_KEY", | ||
| display_name="MiniMax CN", | ||
| via_driver="minimax", | ||
| skip_prefixes=("minimax/", "minimaxi/", "openrouter/"), | ||
| env_extras=(("MINIMAX_API_BASE", "{api_base}"),), | ||
| is_gateway=False, | ||
| is_local=False, | ||
| detect_by_key_prefix="", | ||
| detect_by_base_keyword="", | ||
| strip_model_prefix=False, | ||
| model_overrides=(), | ||
| default_api_base="https://api.minimaxi.com/v1", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocker: this changes only the |
||
| ), | ||
| ProviderSpec( | ||
| name="minimax_global", | ||
| client="minimax_oauth", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocker: this carries the CN address through process-global state, not through the provider instance.
_setup_envappliesenv_extraswithos.environ.setdefault, whileLiteLLMProvider.api_baseremainsNone. In a process with both bindings (whichProviderPoolsupports), constructing CN first makes a later international MiniMax provider read the CN base; conversely, a pre-existing internationalMINIMAX_API_BASEprevents the CN binding from selecting its own base. I reproduced both cases withMinimaxChatConfig.get_api_base. Please pass the selected regional base per provider/request rather than using shared ambient state.