chore: mv router_registry.py to fastapi_router_registry.py

For clarity

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-11-21 11:44:25 +01:00
parent 23e74446db
commit 8a21d8debe
No known key found for this signature in database
6 changed files with 5 additions and 5 deletions

View file

@ -10,7 +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.server.router_registry import build_router, has_router
from llama_stack.core.server.fastapi_router_registry import build_router, has_router
from llama_stack.core.server.routes import get_all_api_routes
from llama_stack_api import (
Api,

View file

@ -30,7 +30,7 @@ def get_all_api_routes(
This function only returns routes from APIs that use the legacy @webmethod
decorator system. For APIs that have been migrated to FastAPI routers,
use the router registry (router_registry.has_router() and router_registry.build_router()).
use the router registry (fastapi_router_registry.has_router() and fastapi_router_registry.build_router()).
Args:
external_apis: Optional dictionary of external API specifications

View file

@ -44,7 +44,7 @@ from llama_stack.core.request_headers import (
request_provider_data_context,
user_from_scope,
)
from llama_stack.core.server.router_registry import build_router
from llama_stack.core.server.fastapi_router_registry import build_router
from llama_stack.core.server.routes import get_all_api_routes
from llama_stack.core.stack import (
Stack,

View file

@ -6,7 +6,7 @@
from aiohttp import hdrs
from llama_stack.core.external import ExternalApiSpec
from llama_stack.core.server.router_registry import has_router
from llama_stack.core.server.fastapi_router_registry import has_router
from llama_stack.core.server.routes import find_matching_route, initialize_route_impls
from llama_stack.core.telemetry.tracing import end_trace, start_trace
from llama_stack.log import get_logger