fix(anthropic): define ANTHROPIC_NON_CACHEABLE_TOOL_TYPES in constants

Refactor commit df59746 imported the constant from litellm.constants but
omitted the definition, breaking the top-level 'from litellm import *' with
an ImportError. Add the tuple there so the import resolves.
This commit is contained in:
Charles Cheng 2026-06-20 10:28:34 +08:00
parent b8f38829af
commit 052d8e70ec

View file

@ -530,6 +530,13 @@ ANTHROPIC_WEB_SEARCH_TOOL_MAX_USES = {
"high": 10,
}
# Tool types Anthropic rejects cache_control on.
# Referenced by anthropic_cache_control_hook and transformation.py.
ANTHROPIC_NON_CACHEABLE_TOOL_TYPES: tuple = (
"tool_search_tool_regex_20251119",
"tool_search_tool_bm25_20251119",
)
# LiteLLM standard web search tool name
# Used for web search interception across providers
LITELLM_WEB_SEARCH_TOOL_NAME = "litellm_web_search"