fix clients

This commit is contained in:
Ashwin Bharambe 2024-09-22 17:25:01 -07:00
parent ef042e1605
commit 622f143d6b
3 changed files with 4 additions and 4 deletions

View file

@ -40,8 +40,8 @@ class MemoryBanksClient(MemoryBanks):
async with httpx.AsyncClient() as client:
response = await client.get(
f"{self.base_url}/memory_banks/get",
json={
"bank_type": bank_type,
params={
"bank_type": bank_type.value,
},
headers={"Content-Type": "application/json"},
)

View file

@ -38,7 +38,7 @@ class ModelsClient(Models):
async with httpx.AsyncClient() as client:
response = await client.get(
f"{self.base_url}/models/get",
json={
params={
"core_model_id": core_model_id,
},
headers={"Content-Type": "application/json"},

View file

@ -38,7 +38,7 @@ class ShieldsClient(Shields):
async with httpx.AsyncClient() as client:
response = await client.get(
f"{self.base_url}/shields/get",
json={
params={
"shield_type": shield_type,
},
headers={"Content-Type": "application/json"},