Skip to main content

Module cost

Module cost 

Source
Expand description

Review cost transparency.

A small pricing table for the LLM models DiffLore actually calls, plus a helper to estimate the USD cost of a single review turn from the provider’s returned usage block.

The table is intentionally conservative: unknown models return None rather than guessing, so downstream code can persist NULL and the cloud aggregation skips the row instead of under-reporting.

Structs§

ModelPricing
Per-1K-token pricing for a single LLM model. Mirrors the public pricing pages for each provider as of the plan date; update when providers change their rate cards.

Functions§

estimate_cost_usd
Compute the estimated USD cost of a single LLM call.
pricing_for
Look up the per-1K pricing for a model. Returns None for unknown identifiers so callers can record NULL and avoid under/over-reporting.