refactor: remove ModelRouteUtils usage and implement filtering directly in services

This commit is contained in:
Will Miao
2025-09-22 09:09:40 +08:00
parent 81c6672880
commit c3b9c73541
8 changed files with 21 additions and 19 deletions

View File

@@ -81,7 +81,7 @@ class MockHashIndex:
class MockCache:
"""Cache object with the attributes consumed by ``ModelRouteUtils``."""
"""Cache object with the attributes."""
def __init__(self, items: Optional[Sequence[Dict[str, Any]]] = None):
self.raw_data: List[Dict[str, Any]] = list(items or [])
@@ -89,7 +89,7 @@ class MockCache:
async def resort(self) -> None:
self.resort_calls += 1
# ``ModelRouteUtils`` expects the coroutine interface but does not
# expects the coroutine interface but does not
# rely on the return value.