Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
test(pricing): stop asserting DeepSeek pricing freshness on wall-clock time (#2428)
Abhay Singhb976378c3e57
diff --git a/tests/test_providers/test_deepseek.py b/tests/test_providers/test_deepseek.pyindex 10934ee06..a35aeba93 100644--- a/tests/test_providers/test_deepseek.py+++ b/tests/test_providers/test_deepseek.py@@ -42,10 +42,16 @@ class TestDeepSeekPricingModule:assert registry.get_price("deepseek-v4-pro") is not Noneassert registry.get_price("nonexistent") is None- def test_registry_staleness_and_source_url(self):+ def test_registry_source_url(self):registry = get_deepseek_registry()assert registry.source_url == "https://api-docs.deepseek.com/quick_start/pricing"- assert not registry.is_stale()+ # Deliberately no `assert not registry.is_stale()` here: is_stale()+ # compares the shipped LAST_UPDATED against date.today(), so asserting+ # freshness makes this test fail on wall-clock time alone once the+ # pricing date ages past STALENESS_THRESHOLD_DAYS (30) - which then+ # breaks CI on every unrelated PR in the repo. The staleness mechanism+ # is covered time-independently in tests/test_pricing.py, and the+ # sibling Anthropic/OpenAI registries make no freshness assertion.def test_deepseek_registry_estimate_cost(self):registry = get_deepseek_registry()