From 63bdd71e2266d2f835ddc4ffb0a325f00ddae393 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 5 Jan 2026 17:58:50 +0800 Subject: [PATCH] fix: update models_gateway_api_url to include version in cloud service configuration --- .../pkg/persistence/migrations/dbm017_move_cloud_service_url.py | 2 +- src/langbot/templates/config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/langbot/pkg/persistence/migrations/dbm017_move_cloud_service_url.py b/src/langbot/pkg/persistence/migrations/dbm017_move_cloud_service_url.py index 180efd80..ba684155 100644 --- a/src/langbot/pkg/persistence/migrations/dbm017_move_cloud_service_url.py +++ b/src/langbot/pkg/persistence/migrations/dbm017_move_cloud_service_url.py @@ -10,7 +10,7 @@ class MoveCloudServiceUrl(migration.DBMigration): if 'space' not in self.ap.instance_config.data: self.ap.instance_config.data['space'] = { 'url': 'https://space.langbot.app', - 'models_gateway_api_url': 'https://api.langbot.cloud', + 'models_gateway_api_url': 'https://api.langbot.cloud/v1', 'oauth_authorize_url': 'https://space.langbot.app/auth/authorize', 'disable_models_service': False, } diff --git a/src/langbot/templates/config.yaml b/src/langbot/templates/config.yaml index 201eff59..e1f7d576 100644 --- a/src/langbot/templates/config.yaml +++ b/src/langbot/templates/config.yaml @@ -74,7 +74,7 @@ space: # Space service URL for OAuth and API url: 'https://space.langbot.app' # Space API URL for model requests (MaaS) - models_gateway_api_url: 'https://api.langbot.cloud' + models_gateway_api_url: 'https://api.langbot.cloud/v1' # OAuth authorization page URL (user will be redirected here) oauth_authorize_url: 'https://space.langbot.app/auth/authorize' disable_models_service: false