Files
localmodelroutex/backend
LovroG05 dc11a8dde5 fix: bill OpenRouter requests using its own reported cost
Cost was always estimated locally from catalog per-token prices, which
drifts from what OpenRouter actually charges (dynamic routing, BYOK,
promos, provider-specific caching). Request OpenRouter's usage.include
extension and use the returned usage.cost as the authoritative figure
when present, falling back to the per-token estimate for providers that
don't report it.
2026-07-01 16:17:05 +02:00
..
2026-06-27 22:47:37 +02:00