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
@@ -19,7 +19,7 @@ class ModelScopeConfigCompletionMigration(migration.Migration):
""" """
if 'modelscope-chat-completions' not in self.ap.provider_cfg.data['requester']: if 'modelscope-chat-completions' not in self.ap.provider_cfg.data['requester']:
self.ap.provider_cfg.data['requester']['modelscope-chat-completions'] = { 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': {}, 'args': {},
'timeout': 120, 'timeout': 120,
} }