From 4bb567f97618a815c198ea4daf49df8666581b7b Mon Sep 17 00:00:00 2001 From: Feng Jiajie Date: Thu, 28 May 2026 22:00:26 +0800 Subject: [PATCH] chore(dashscope): add qwen3-rerank context-window limits Fill in the context-window metadata other rerank entries carry, for dashscope/qwen3-rerank in both price JSONs: request max input (120k), single query/document max (4k), and max document count (500). Values from the Aliyun Model Studio text-rerank docs. Co-Authored-By: Claude Opus 4.7 (1M context) --- litellm/model_prices_and_context_window_backup.json | 6 ++++++ model_prices_and_context_window.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 624316fe120..738ba802501 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -10995,6 +10995,12 @@ "dashscope/qwen3-rerank": { "input_cost_per_token": 1e-07, "litellm_provider": "dashscope", + "max_document_chunks_per_query": 500, + "max_input_tokens": 120000, + "max_output_tokens": 120000, + "max_query_tokens": 4000, + "max_tokens": 120000, + "max_tokens_per_document_chunk": 4000, "mode": "rerank", "output_cost_per_token": 0.0, "source": "https://www.alibabacloud.com/help/en/model-studio/model-pricing" diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index b24c9a89ca7..6aebe5e8d41 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -10995,6 +10995,12 @@ "dashscope/qwen3-rerank": { "input_cost_per_token": 1e-07, "litellm_provider": "dashscope", + "max_document_chunks_per_query": 500, + "max_input_tokens": 120000, + "max_output_tokens": 120000, + "max_query_tokens": 4000, + "max_tokens": 120000, + "max_tokens_per_document_chunk": 4000, "mode": "rerank", "output_cost_per_token": 0.0, "source": "https://www.alibabacloud.com/help/en/model-studio/model-pricing"