From d15ceab174790908ccaeb861d6e67f2bcbeadf00 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Sat, 19 Sep 2026 12:30:39 -0700 Subject: [PATCH] fix(proxy): declare the web search settings auth dependency with Annotated --- litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py index 36b90d37da8..a86b7732bcf 100644 --- a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py +++ b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py @@ -6,6 +6,7 @@ from collections import Counter from collections.abc import Mapping, MutableMapping, Sequence from types import MappingProxyType from typing import ( + Annotated, Final, NamedTuple, Protocol, @@ -1471,7 +1472,7 @@ async def update_mcp_semantic_filter_settings( response_model=WebSearchInterceptionSettingsResponse, ) async def get_websearch_interception_settings( - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: Annotated[UserAPIKeyAuth, Depends(user_api_key_auth)], ): """ Get web search interception configuration. @@ -1502,7 +1503,7 @@ async def get_websearch_interception_settings( ) async def update_websearch_interception_settings( settings: WebSearchInterceptionSettings, - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: Annotated[UserAPIKeyAuth, Depends(user_api_key_auth)], ): """ Update web search interception settings in database.