fix: no inline import

https://github.com/llamastack/llama-stack/pull/4191#discussion_r2557412421

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-11-25 11:04:33 +01:00
parent 3dc5b5d3a0
commit ead9e63ef8
No known key found for this signature in database

View file

@ -10,6 +10,7 @@ from pydantic import BaseModel
from llama_stack.core.datatypes import StackRunConfig
from llama_stack.core.external import load_external_apis
from llama_stack.core.resolver import api_protocol_map
from llama_stack.core.server.fastapi_router_registry import build_fastapi_router
from llama_stack.core.server.routes import get_all_api_routes
from llama_stack_api import (
@ -108,9 +109,6 @@ class DistributionInspectImpl(Inspect):
return not route_deprecated and prefix_level == api_filter
return not route_deprecated
# Process router-based routes
from llama_stack.core.resolver import api_protocol_map
protocols = api_protocol_map(external_apis)
for api in protocols.keys():
# For route inspection, we don't need a real implementation