Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/models_provider/base_model_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ def get_model_credential(self, model_type, model_name):
api_base = model_credential.api_base
if hasattr(api_base, 'default_value') and not api_base.default_value:
api_base.default_value = 'https://dashscope.aliyuncs.com/api/v1'

# MiniMax H3 视频模型固定走 v2 API
if model_type in ('TTV', 'ITV') and model_name.upper().startswith(('MiniMax-H3')):
if hasattr(model_credential, 'api_base'):
api_base = model_credential.api_base
if hasattr(api_base, 'default_value'):
api_base.default_value = 'https://api.minimaxi.com/v2'

return model_credential

def get_model_params(self, model_type, model_name):
Expand Down
Loading