Pricing table is an API-equivalent estimate #196

Open
opened 2026-11-21 12:36:45 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-cli/src/main.rs:pricing
What is hacky: hard-coded per-model price table matched by substring; subscription usage is not billed per token, so costs shown are estimates.
Proper fix: source prices from the provider model catalog or config, label cost as estimate in UI.
Original comment: "USD per million tokens. ponytail: subscription usage isn't billed per token; this is an API-equivalent estimate."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-cli/src/main.rs:pricing What is hacky: hard-coded per-model price table matched by substring; subscription usage is not billed per token, so costs shown are estimates. Proper fix: source prices from the provider model catalog or config, label cost as estimate in UI. Original comment: "USD per million tokens. ponytail: subscription usage isn't billed per token; this is an API-equivalent estimate." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the cli label 2026-11-21 12:36:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#196