litellm/tests/test_litellm/llms/dashscope
Shivam Rawat 8548816ae4 fix(cost): coerce string tiered-pricing costs and share tier helper
YAML-parsed tier costs can arrive as strings (e.g. "4e-07"), which broke
arithmetic in the graduated tiered-pricing calculation. Coerce per-token
costs to float in both the in-range and remaining-tokens paths.

Move the tiered-cost helper out of the Dashscope module into a
provider-neutral home so the proxy budget reservation no longer depends on
a provider-specific module.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 14:05:26 -07:00
..
test_dashscope_chat_transformation.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_dashscope_cost_calculator.py fix(cost): coerce string tiered-pricing costs and share tier helper 2026-07-11 14:05:26 -07:00
test_dashscope_embedding_transformation.py Litellm oss staging (#28161) 2026-05-18 16:27:44 -07:00
test_dashscope_rerank_transformation.py Litellm oss staging (#28161) 2026-05-18 16:27:44 -07:00