Skip to content

Commit bc2edcd

Browse files
committed
fix: update API base URL from minimax.io to minimaxi.com
1 parent 3e3590a commit bc2edcd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/models_provider/impl/minimax_model_provider

apps/models_provider/impl/minimax_model_provider/credential/tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MiniMaxTTSModelGeneralParams(BaseForm):
2323

2424
class MiniMaxTTSModelCredential(BaseForm, BaseModelCredential):
2525
api_base = forms.TextInputField('API URL', required=True,
26-
default_value='https://api.minimax.io/v1')
26+
default_value='https://api.minimaxi.com/v1')
2727
api_key = forms.PasswordInputField('API Key', required=True)
2828

2929
def is_valid(self, model_type: str, model_name, model_credential: Dict[str, object], model_params, provider,

apps/models_provider/impl/minimax_model_provider/model/tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def new_instance(model_type, model_name, model_credential: Dict[str, object], **
3535
optional_params['params'][key] = value
3636
return MiniMaxTextToSpeech(
3737
model=model_name,
38-
api_base=model_credential.get('api_base') or 'https://api.minimax.io/v1',
38+
api_base=model_credential.get('api_base') or 'https://api.minimaxi.com/v1',
3939
api_key=model_credential.get('api_key'),
4040
**optional_params,
4141
)

0 commit comments

Comments
 (0)