Skip to content

Commit d03ae3a

Browse files
authored
Merge pull request #165 from kalibr-ai/fix/suppress-optional-sdk-warnings
fix: suppress optional SDK warnings
2 parents bc638c1 + 74b0f1b commit d03ae3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

kalibr/instrumentation/registry.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ def auto_instrument(providers: List[str] = None) -> Dict[str, bool]:
114114
results[provider_lower] = False
115115

116116
except ImportError as e:
117-
print(f"⚠️ {provider} SDK not installed, skipping instrumentation")
117+
# Optional providers are silent when not installed. Core providers still warn.
118+
_silent_optional = {"google", "huggingface", "elevenlabs", "deepgram", "openai_responses"}
119+
if provider_lower not in _silent_optional:
120+
print(f"⚠️ {provider} SDK not installed, skipping instrumentation")
118121
results[provider_lower] = False
119122
except Exception as e:
120123
print(f"❌ Failed to instrument {provider}: {e}")

0 commit comments

Comments
 (0)