~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
refactor(metrics): remove dead PricingCache disk-cache no-op stubs (#4921)
Taniya Souza3f7a19121e50
diff --git a/changelog.d/+remove-dead-pricing-cache-stubs.removal.md b/changelog.d/+remove-dead-pricing-cache-stubs.removal.mdnew file mode 100644index 0000000000..1402914aca--- /dev/null+++ b/changelog.d/+remove-dead-pricing-cache-stubs.removal.md@@ -0,0 +1 @@+Removed the unused `PricingCache._load_cache` and `PricingCache._save_cache` methods. They were left behind as deprecated no-op stubs (empty `pass` bodies) when the disk-backed pricing cache was replaced with an in-memory bounded `TTLCache`, and they had no callers anywhere in the codebase.diff --git a/src/local_deep_research/metrics/pricing/pricing_cache.py b/src/local_deep_research/metrics/pricing/pricing_cache.pyindex 06468f42f4..2ba4c4c7c4 100644--- a/src/local_deep_research/metrics/pricing/pricing_cache.py+++ b/src/local_deep_research/metrics/pricing/pricing_cache.py@@ -27,14 +27,6 @@ class PricingCache:self._cache: TTLCache = TTLCache(maxsize=500, ttl=cache_ttl)logger.info("PricingCache initialized with bounded TTLCache")- def _load_cache(self):- """DEPRECATED: No longer loads from disk."""- pass-- def _save_cache(self):- """DEPRECATED: No longer saves to disk."""- pass-def get(self, key: str) -> Optional[Any]:"""Get cached pricing data. TTLCache handles expiration automatically."""return self._cache.get(key)