mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
Merge pull request #667 from Routstr/fix-tests
test: register DeepSeek V4 pricing shim in cache pricing tests
This commit is contained in:
@@ -31,6 +31,15 @@ from routstr.payment.models import (
|
||||
backfill_cache_pricing,
|
||||
)
|
||||
from routstr.upstream import GenericUpstreamProvider
|
||||
from routstr.upstream.deepseek_v4_pricing_shim import register_deepseek_v4_pricing
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _deepseek_v4_pricing() -> None:
|
||||
# litellm's bundled cost map lacks the DeepSeek V4 entries (they only
|
||||
# appear when its remote map is reachable); production injects them at
|
||||
# startup via this same shim.
|
||||
register_deepseek_v4_pricing()
|
||||
|
||||
|
||||
def _make_model(model_id: str, pricing: Pricing) -> Model:
|
||||
|
||||
Reference in New Issue
Block a user