File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1717from predicate .llm_provider import OllamaProvider
1818from predicate .tracing import Tracer
1919
20- # Optional imports for cloud providers
20+ # Check if optional cloud provider packages are installed
21+ # Note: The provider classes exist but require their respective packages at runtime
2122try :
22- from predicate . llm_provider import OpenAIProvider
23+ import openai # noqa: F401
2324
2425 HAS_OPENAI = True
2526except ImportError :
2627 HAS_OPENAI = False
2728
2829try :
29- from predicate . llm_provider import AnthropicProvider
30+ import anthropic # noqa: F401
3031
3132 HAS_ANTHROPIC = True
3233except ImportError :
3334 HAS_ANTHROPIC = False
3435
36+ # Import provider classes (they exist but need packages at instantiation time)
37+ from predicate .llm_provider import AnthropicProvider , OpenAIProvider
38+
3539
3640class TestDetectProvider :
3741 """Test provider auto-detection from model names."""
You can’t perform that action at this time.
0 commit comments