mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
move straggler files and fix some important existing bugs
This commit is contained in:
parent
5e972ece13
commit
7890921e5c
5 changed files with 303 additions and 11 deletions
|
@ -233,9 +233,10 @@ def topological_sort(adapters: List[Adapter]) -> List[Adapter]:
|
|||
def dfs(a: Adapter, visited: Set[ApiSurface], stack: List[ApiSurface]):
|
||||
visited.add(a.api_surface)
|
||||
|
||||
for surface in a.adapter_dependencies:
|
||||
if surface not in visited:
|
||||
dfs(by_id[surface], visited, stack)
|
||||
if not isinstance(a, PassthroughApiAdapter):
|
||||
for surface in a.adapter_dependencies:
|
||||
if surface not in visited:
|
||||
dfs(by_id[surface], visited, stack)
|
||||
|
||||
stack.append(a.api_surface)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue