mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix:mypy mcp management
This commit is contained in:
parent
15a28c7fe2
commit
84b24ad030
1 changed files with 2 additions and 1 deletions
|
|
@ -304,12 +304,13 @@ if MCP_AVAILABLE:
|
|||
|
||||
## FastAPI Routes
|
||||
def _get_user_mcp_management_mode() -> UserMCPManagementMode:
|
||||
proxy_general_settings: dict = {}
|
||||
try:
|
||||
from litellm.proxy.proxy_server import (
|
||||
general_settings as proxy_general_settings,
|
||||
)
|
||||
except Exception:
|
||||
proxy_general_settings = None
|
||||
pass
|
||||
|
||||
mode = (proxy_general_settings or {}).get("user_mcp_management_mode")
|
||||
if mode == "view_all":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue