fix(modelscope): bad base-url in migration

This commit is contained in:
Junyan Qin
2025-04-03 20:52:01 +08:00
parent 30b068c6e2
commit 8a4967525a

View File

@@ -19,7 +19,7 @@ class ModelScopeConfigCompletionMigration(migration.Migration):
"""
if 'modelscope-chat-completions' not in self.ap.provider_cfg.data['requester']:
self.ap.provider_cfg.data['requester']['modelscope-chat-completions'] = {
'base-url': 'https://api.modelscope.cn/v1',
'base-url': 'https://api-inference.modelscope.cn/v1',
'args': {},
'timeout': 120,
}