main-ruqi #1

Merged
wangwei merged 17 commits from main-ruqi into main 2026-07-02 22:05:17 +08:00
Showing only changes of commit d460397dda - Show all commits
@@ -11,6 +11,8 @@ from app.shared.model_usage_tracker import ModelUsageTracker
def _make_inner(model: str = "deepseek-v4-flash") -> MagicMock: def _make_inner(model: str = "deepseek-v4-flash") -> MagicMock:
"""Build a MagicMock standing in for a concrete BaseLLMClient subclass.""" """Build a MagicMock standing in for a concrete BaseLLMClient subclass."""
# Use MagicMock to avoid requiring a real LLM provider implementation (e.g., DeepseekClient);
# tests focus on TrackedLLMClient's delegation and recording behavior, not provider logic.
inner = MagicMock() inner = MagicMock()
inner.config = LLMConfig( inner.config = LLMConfig(
provider=LLMProvider.DEEPSEEK, model=model, api_key="test-key", base_url="http://example.test/v1", provider=LLMProvider.DEEPSEEK, model=model, api_key="test-key", base_url="http://example.test/v1",