mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
fix clients
This commit is contained in:
parent
ef042e1605
commit
622f143d6b
3 changed files with 4 additions and 4 deletions
|
@ -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"},
|
||||
)
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue