mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
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:
parent
b8f38829af
commit
052d8e70ec
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue