mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix: only show semantic tool filter warning when explicitly enabled
- Remove annoying warning when semantic tool filtering is not configured - Only warn if user explicitly enabled it but initialization failed - Fixes issue where warning appeared even when feature was never set up Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
7b8e3c7736
commit
c2c42a2b78
1 changed files with 2 additions and 1 deletions
|
|
@ -4786,7 +4786,8 @@ class ProxyStartupEvent:
|
|||
if hook:
|
||||
verbose_proxy_logger.debug("✅ Semantic tool filter hook registered")
|
||||
litellm.logging_callback_manager.add_litellm_callback(hook)
|
||||
else:
|
||||
elif mcp_semantic_filter_config is not None and mcp_semantic_filter_config.get("enabled", False):
|
||||
# Only warn if user explicitly enabled it but initialization failed
|
||||
verbose_proxy_logger.warning("❌ Semantic tool filter hook not initialized")
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue