Skip to content

fix(estimate): chat is free by MCP's FREE_CHAT_MODELS, not by an nvidia/ prefix - #3

Merged
VickyXAI merged 2 commits into
mainfrom
fix/free-set-2026-10-20
Oct 20, 2026
Merged

VickyXAI merged 2 commits into
mainfrom
fix/free-set-2026-10-20

Conversation

@VickyXAI

@VickyXAI VickyXAI commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What changes

In lib/estimate.js, the chat estimate used to treat any nvidia/* model as free. It now checks the actual $0 set, copied from @blockrun/mcp FREE_CHAT_MODELS (as of BlockRunAI/blockrun-mcp#181). The set has 32 ids, including cohere/north-mini-code, poolside/laguna-xs-2.1, nvidia/muse-glimmer-30b and the hidden NVIDIA ids that the account sheet prices at $0.

  • Effect: explicit calls to cohere/north-mini-code and poolside/laguna-xs-2.1 no longer show a ~$0.005 charge. An nvidia/* id that is not on the list now estimates as paid, which is the safe direction.
  • Bare spellings (gpt-oss-20b) are recognised. The one exception is bare deepseek-v4-pro: that name belongs to the paid deepseek/deepseek-v4-pro, so it estimates as paid. This matches MCP's FREE_SHADOWED_BY_PAID.
  • Explicit model beats mode, as in the MCP. model:"openai/gpt-5.6-terra", mode:"free" is no longer estimated at $0.

Sources

Checks

  • node --check passes on lib/estimate.js and hooks/*.js.
  • A smoke test of estimate() gave the expected result for each case: mode free, cohere/poolside/muse-glimmer, a hidden nvidia id, bare gpt-oss-20b, nvidia/deepseek-v4-pro vs bare deepseek-v4-pro, an unknown nvidia/* id, and a paid model with mode free.
  • Running hooks/spend-gate.js end-to-end with cohere/north-mini-code raised no prompt.

The Claude and Codex copies of lib/estimate.js are byte-identical. There is no package.json in this repo.

Update (2026-10-20)

nvidia/deepseek-v4-pro and nvidia/deepseek-v4-flash are removed from the free list, mirroring BlockRunAI/blockrun-mcp#181. The gateway retired -flash in blockrun#848 and is retiring -pro, and both then return an unknown-model 400. The list now has 30 ids.

Bare deepseek-v4-pro still estimates as the paid DeepSeek model. Smoke test: both nvidia ids and both bare spellings now estimate at $0.005, the paid fallback, while the other free ids still estimate at $0.

1bcMax added 2 commits October 19, 2026 23:37
…ia/ prefix

Mirror @blockrun/mcp FREE_CHAT_MODELS (32 ids, incl. cohere/north-mini-code,
poolside/laguna-xs-2.1, nvidia/muse-glimmer-30b and the account-sheet $0
NVIDIA ids). Bare spellings count, except bare deepseek-v4-pro, which is the
paid DeepSeek model. An explicit model wins over mode, as in the MCP.
The gateways retired both (unknown-model 400), mirroring blockrun-mcp#181.
Bare deepseek-v4-pro still estimates as the paid DeepSeek model.
@VickyXAI
VickyXAI merged commit bcba77c into main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant