Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions litellm/model_prices_and_context_window_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -12115,7 +12115,7 @@
"azure_ai/deepseek-v3.2": {
"input_cost_per_token": 5.8e-07,
"litellm_provider": "azure_ai",
"max_input_tokens": 163840,
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
Expand Down Expand Up @@ -12223,7 +12223,7 @@
"azure_ai/grok-4": {
"input_cost_per_token": 3e-06,
"litellm_provider": "azure_ai",
"max_input_tokens": 131072,
"max_input_tokens": 262000,
"max_output_tokens": 8192,
"max_tokens": 8192,
"mode": "chat",
Expand Down Expand Up @@ -12345,7 +12345,7 @@
"azure_ai/grok-code-fast-1": {
"input_cost_per_token": 2e-07,
"litellm_provider": "azure_ai",
"max_input_tokens": 131072,
"max_input_tokens": 256000,
"max_output_tokens": 8192,
"max_tokens": 8192,
"mode": "chat",
Expand Down
6 changes: 3 additions & 3 deletions model_prices_and_context_window.json
Original file line number Diff line number Diff line change
Expand Up @@ -12115,7 +12115,7 @@
"azure_ai/deepseek-v3.2": {
"input_cost_per_token": 5.8e-07,
"litellm_provider": "azure_ai",
"max_input_tokens": 163840,
"max_input_tokens": 128000,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Output limit is silently reduced

When litellm.modify_params is enabled, this change makes DeepSeek-V3.2’s input limit equal its unchanged 128,000-token output limit. For a completion that requests a large output, LiteLLM now treats those limits as one shared budget and subtracts the prompt tokens from max_tokens, silently shortening the requested output. The Azure listing presents input and output as separate limits; please verify that the endpoint requires a combined budget before this input-only update changes output lengths. The backup map has the same change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure states 128,000 input and 128,000 output for DeepSeek-V3.2; deepseek-v3.2-speciale and deepseek/deepseek-v3.2 already carry equal limits, so the shared-budget clamp matches siblings

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Azure documents these as separate limits—128,000 input and 128,000 output—and the existing deepseek-v3.2-speciale / deepseek/deepseek-v3.2 catalog entries establish the same equal-limit representation. I don't have evidence that modify_params treats max_input_tokens and max_output_tokens as a shared output budget; my earlier claim about subtracting prompt tokens from max_tokens was incorrect. This input-limit update is therefore consistent with the provider documentation and sibling entries; no change is needed.

"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
Expand Down Expand Up @@ -12223,7 +12223,7 @@
"azure_ai/grok-4": {
"input_cost_per_token": 3e-06,
"litellm_provider": "azure_ai",
"max_input_tokens": 131072,
"max_input_tokens": 262000,
"max_output_tokens": 8192,
"max_tokens": 8192,
"mode": "chat",
Expand Down Expand Up @@ -12345,7 +12345,7 @@
"azure_ai/grok-code-fast-1": {
"input_cost_per_token": 2e-07,
"litellm_provider": "azure_ai",
"max_input_tokens": 131072,
"max_input_tokens": 256000,
"max_output_tokens": 8192,
"max_tokens": 8192,
"mode": "chat",
Expand Down
Loading