Capture optional provider reported costs

This commit is contained in:
2026-11-22 18:25:32 +00:00
parent 6ed0e037c4
commit cd0e1f5d39
5 changed files with 66 additions and 2 deletions

View File

@@ -304,6 +304,8 @@ Validation: pure accounting and public serialization tests; no pricing library.
## Stage 10 — Optional Cost At The Model-Client Boundary
**Completed.**
- Decode OpenRouter `usage.cost` independently using local tolerant finite-float
handling. Missing/null/string/object/overflow values are unknown; invalid
framing or common envelope fields retain existing failures. Generic/vLLM do