mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-15 06:50:58 +00:00
fix(modelscope): bad base-url in migration
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user