mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
fix unregister_toolgroup error
Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
This commit is contained in:
parent
031a40bec0
commit
a1e6133523
1 changed files with 2 additions and 2 deletions
|
@ -608,8 +608,8 @@ class ToolGroupsRoutingTable(CommonRoutingTableImpl, ToolGroups):
|
||||||
tool_group = await self.get_tool_group(toolgroup_id)
|
tool_group = await self.get_tool_group(toolgroup_id)
|
||||||
if tool_group is None:
|
if tool_group is None:
|
||||||
raise ValueError(f"Tool group {toolgroup_id} not found")
|
raise ValueError(f"Tool group {toolgroup_id} not found")
|
||||||
tools = (await self.list_tools(toolgroup_id)).data
|
tools = await self.list_tools(toolgroup_id)
|
||||||
for tool in tools:
|
for tool in tools.data:
|
||||||
await self.unregister_object(tool)
|
await self.unregister_object(tool)
|
||||||
await self.unregister_object(tool_group)
|
await self.unregister_object(tool_group)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue