litellm/litellm-rust/crates/model-catalog
tavren27 97cd5d0c6a
fix(model-catalog): declare the tool and Responses token count framing keys (#49683)
* fix(model-catalog): declare the tool and Responses token count framing keys

* fix(model-catalog): read token count framings as strict integers

The cost map guard read the framing keys as lax counts, so a text "214"
or a true passed while litellm's reader drops both and falls back to the
plain framing. Read all four framing keys as plain u64, matching the reader

* fix(model-catalog): accept whole-float token count framings the way the Python reader does

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-02 10:20:23 -08:00
..
src fix(model-catalog): declare the tool and Responses token count framing keys (#49683) 2026-11-02 10:20:23 -08:00
tests ci(model-catalog): check the cost map by loading it through model-catalog (#48908) 2026-10-29 07:55:02 -07:00
AGENTS.md docs(model-catalog): explain meter, band, channel and When (#49447) 2026-10-31 16:09:29 +00:00
Cargo.toml ci(model-catalog): check the cost map by loading it through model-catalog (#48908) 2026-10-29 07:55:02 -07:00