[PD] Add a fallback to bypass rust dep for mini_lb (#21982)

This commit is contained in:
ybyang
2026-04-15 22:34:36 +08:00
committed by GitHub
parent 695ab705cb
commit 9e84f53785
@@ -4,7 +4,16 @@ import logging
import os
from typing import Dict, List, Optional
try:
from sglang_router.sglang_router_rs import get_available_tool_call_parsers
except ModuleNotFoundError:
logging.warning(
"sglang_router_rs is not available, get_available_tool_call_parsers will return empty list"
)
def get_available_tool_call_parsers() -> List[str]:
return []
logger = logging.getLogger(__name__)