From 1684e3483384d581a86de9a557bbc66c4fd6f86c Mon Sep 17 00:00:00 2001 From: MrChengmo Date: Tue, 19 Mar 2024 11:14:08 +0800 Subject: [PATCH] update --- .../core/components/retriever/baidu_vdb/baiduvdb_retriever.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py b/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py index d716f05f1..25015607f 100644 --- a/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py +++ b/appbuilder/core/components/retriever/baidu_vdb/baiduvdb_retriever.py @@ -136,11 +136,13 @@ def _init_client(self, instance_id, account, api_key): from pymochow.auth.bce_credentials import AppBuilderCredentials gateway = os.getenv("GATEWAY_URL") if os.getenv("GATEWAY_URL") else GATEWAY_URL + appbuilder_token = os.getenv("APPBUILDER_TOKEN") + uri_prefix=self.vdb_uri_prefix + instance_id.encode('utf-8') config = Configuration( credentials=AppBuilderCredentials(account, api_key, appbuilder_token), endpoint=gateway, - uri_perfix=self.vdb_uri_prefix, + uri_prefix=uri_prefix, connection_timeout_in_mills=DEFAULT_TIMEOUT_IN_MILLS, ) self.vdb_client = pymochow.MochowClient(config)