mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-28 06:23:01 +00:00
zerank-2 is the default reranker under search_mode: tokenmax, but had no pricing entry — any --max-cost-capped rerank call TX2 hard-failed in BudgetTracker.reserve() with "no pricing entry". Adding the entry to EMBEDDING_PRICING alone (the issue's suggested fix) does not resolve this: lookupPricing()'s rerank branch in budget-tracker.ts never consulted that table at all, only ANTHROPIC_PRICING and the FREE_LOCAL_RERANK_PROVIDERS zero-price set. Verified by reproducing the hard-fail with only the pricing-table entry added and confirming it still threw. Fix: add the $0.025/1M-token entry (docs/ai-providers/zeroentropy.md) and wire the rerank branch to fall back to lookupEmbeddingPrice, reusing the existing provider:model-keyed table instead of duplicating a third pricing surface. Addresses the report in #3223. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>