mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(router): clarify circular import comment for ComplexityRouter
This commit is contained in:
parent
2ad36dd2a6
commit
2ba44c6b51
1 changed files with 3 additions and 2 deletions
|
|
@ -6301,8 +6301,9 @@ class Router:
|
|||
|
||||
This will initialize the complexity-router and add it to the complexity-routers dictionary.
|
||||
"""
|
||||
# Import here to match AutoRouter pattern and avoid circular imports
|
||||
# (ComplexityRouter is a CustomLogger subclass that imports litellm internals)
|
||||
# Import here to avoid circular imports — ComplexityRouter is a CustomLogger
|
||||
# subclass that imports litellm internals which depend on router.py.
|
||||
# This matches the AutoRouter pattern in init_auto_router_deployment above.
|
||||
from litellm.router_strategy.complexity_router.complexity_router import (
|
||||
ComplexityRouter,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue