Skip to content

Commit ed16daa

Browse files
committed
update
1 parent 1e6637f commit ed16daa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyepsilla/cloud/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_db_list(self):
5555

5656
def load_db(self, db_name: str, db_path: str):
5757
db_id = db_name.lstripe("db_").replace("_", "-")
58-
req_url = f"/vectordb/{db_id}/load"
58+
req_url = f"{self._baseurl}/vectordb/{db_id}/load"
5959
resp = requests.post(url=req_url, data=None, headers=self._header, verify=False)
6060
status_code = resp.status_code
6161
body = resp.json()
@@ -68,7 +68,7 @@ def use_db(self, db_name: str):
6868
return 200, {"statusCode": 200, "message": "", "result": {}}
6969

7070
def get_db_info(self, db_id: str):
71-
req_url = "{}/vectordb/{}".format(self._baseurl, db_id)
71+
req_url = f"{self._baseurl}/vectordb/{db_id}"
7272
resp = requests.get(url=req_url, data=None, headers=self._header, verify=False)
7373
status_code = resp.status_code
7474
body = resp.json()
@@ -77,7 +77,7 @@ def get_db_info(self, db_id: str):
7777
return status_code, body
7878

7979
def get_db_statistics(self, db_id: str):
80-
req_url = "{}/vectordb/{}/statistics".format(self._baseurl, db_id)
80+
req_url = f"{self._baseurl}/vectordb/{db_id}/statistics"
8181
req_data = None
8282
resp = requests.get(
8383
url=req_url, data=json.dumps(req_data), headers=self._header, verify=False

0 commit comments

Comments
 (0)