litellm/tests/unit/llms/dashscope
kenneth-berri 3115254fc3
fix(dashscope): bill 1h cache writes at the 1h rate (#52331)
* fix(dashscope): bill 1h cache writes at the 1h rate

DashScope reports the 5m/1h cache-write split as a nested
prompt_tokens_details.cache_creation object. That split is now read into
cache_creation_token_details, and the DashScope calculator prices the 1h
tokens at cache_creation_input_token_cost_above_1hr, falling back to the
regular write rate when no 1h rate is set.

* Bill a DashScope tier without a 1h rate at the tier write rate
2026-11-17 12:07:01 -08:00
..
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_dashscope_chat_transformation.py feat(dashscope)!: derive protocol bases from one domain (#47812) 2026-10-29 09:08:18 -07:00
test_dashscope_common_utils.py feat(dashscope)!: derive protocol bases from one domain (#47812) 2026-10-29 09:08:18 -07:00
test_dashscope_cost_calculator.py fix(dashscope): bill 1h cache writes at the 1h rate (#52331) 2026-11-17 12:07:01 -08:00
test_dashscope_embedding_transformation.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_dashscope_image_edit_transformation.py feat(dashscope): add image edits and text-to-speech (#48998) 2026-10-29 17:48:38 -07:00
test_dashscope_messages_transformation.py feat(dashscope)!: derive protocol bases from one domain (#47812) 2026-10-29 09:08:18 -07:00
test_dashscope_rerank_transformation.py feat(dashscope)!: derive protocol bases from one domain (#47812) 2026-10-29 09:08:18 -07:00
test_dashscope_text_to_speech_transformation.py feat(dashscope): add image edits and text-to-speech (#48998) 2026-10-29 17:48:38 -07:00
test_dashscope_video_transformation.py feat(videos): add first-class OpenRouter video request fields (#50319) 2026-11-06 16:50:48 -08:00
test_qwen_brand_aliases.py feat(dashscope)!: derive protocol bases from one domain (#47812) 2026-10-29 09:08:18 -07:00