mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 12:21:52 +00:00
update memory_banks method name to for openapi generator to work correctly without naming collision
This commit is contained in:
parent
2d7ce81302
commit
75357df02d
5 changed files with 229 additions and 103 deletions
|
@ -25,7 +25,7 @@ class MemoryBanksClient(MemoryBanks):
|
|||
async def shutdown(self) -> None:
|
||||
pass
|
||||
|
||||
async def list_memory_banks(self) -> List[MemoryBankSpec]:
|
||||
async def list_available_memory_banks(self) -> List[MemoryBankSpec]:
|
||||
async with httpx.AsyncClient() as client:
|
||||
response = await client.get(
|
||||
f"{self.base_url}/memory_banks/list",
|
||||
|
@ -34,7 +34,7 @@ class MemoryBanksClient(MemoryBanks):
|
|||
response.raise_for_status()
|
||||
return [MemoryBankSpec(**x) for x in response.json()]
|
||||
|
||||
async def get_memory_bank(
|
||||
async def get_serving_memory_bank(
|
||||
self, bank_type: MemoryBankType
|
||||
) -> Optional[MemoryBankSpec]:
|
||||
async with httpx.AsyncClient() as client:
|
||||
|
@ -55,7 +55,7 @@ class MemoryBanksClient(MemoryBanks):
|
|||
async def run_main(host: str, port: int, stream: bool):
|
||||
client = MemoryBanksClient(f"http://{host}:{port}")
|
||||
|
||||
response = await client.list_memory_banks()
|
||||
response = await client.list_available_memory_banks()
|
||||
cprint(f"list_memory_banks response={response}", "green")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue