mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_dashscope_chat_transformation.py | ||
| test_dashscope_common_utils.py | ||
| test_dashscope_cost_calculator.py | ||
| test_dashscope_embedding_transformation.py | ||
| test_dashscope_image_edit_transformation.py | ||
| test_dashscope_messages_transformation.py | ||
| test_dashscope_rerank_transformation.py | ||
| test_dashscope_text_to_speech_transformation.py | ||
| test_dashscope_video_transformation.py | ||
| test_qwen_brand_aliases.py | ||