From f92341acf67a987e55dbb83906710933d7c1015e Mon Sep 17 00:00:00 2001 From: leilei3167 Date: Wed, 16 Sep 2026 15:38:33 +0000 Subject: [PATCH] fix(websearch): mark conventional-name flag ReadOnly for LIT012 TypedDict writable fields count against the type-discipline budget. --- litellm/types/integrations/websearch_interception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/integrations/websearch_interception.py b/litellm/types/integrations/websearch_interception.py index 7209445542b..1690e751660 100644 --- a/litellm/types/integrations/websearch_interception.py +++ b/litellm/types/integrations/websearch_interception.py @@ -48,7 +48,7 @@ class WebSearchInterceptionConfig(TypedDict, total=False): max_agentic_loops: ReadOnly[int | None] """How many follow-up model calls one intercepted request may chain. If None, LiteLLM's default of 3 applies.""" - recognize_conventional_web_search_name: bool + recognize_conventional_web_search_name: ReadOnly[bool] """When True, treat name-only OpenAI function tools named ``web_search`` as server search tools. Default is off so a user-defined name-only ``web_search`` function still reaches the client handler.