Test LLM wrapper with default provider (Anthropic).
()
| 105 | |
| 106 | @pytest.mark.asyncio |
| 107 | async def test_wrapper_default_provider(): |
| 108 | """Test LLM wrapper with default provider (Anthropic).""" |
| 109 | print("\n=== Testing LLM Wrapper (Default Provider) ===") |
| 110 | |
| 111 | # Load config |
| 112 | config_path = Path("mini_agent/config/config.yaml") |
| 113 | with open(config_path, encoding="utf-8") as f: |
| 114 | config = yaml.safe_load(f) |
| 115 | |
| 116 | # Create client without specifying provider (should default to Anthropic) |
| 117 | client = LLMClient( |
| 118 | api_key=config["api_key"], |
| 119 | model=config.get("model"), |
| 120 | ) |
| 121 | |
| 122 | assert client.provider == LLMProvider.ANTHROPIC |
| 123 | print("✅ Default provider is Anthropic") |
| 124 | return True |
| 125 | |
| 126 | |
| 127 | @pytest.mark.asyncio |