From 0ff13453ea800719337d0848c9923b446bd5cabc Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 20 Dec 2025 13:30:11 +0530 Subject: [PATCH] fix(types/utils.py): add order param to litellm_params Fixes https://github.com/BerriAI/litellm/issues/18259 --- ...odel_prices_and_context_window_backup.json | 42 +++++++++---------- litellm/types/utils.py | 1 + 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index d0bbbe6d5df..8acab0d72d6 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -24594,27 +24594,6 @@ "mode": "image_generation", "output_cost_per_image": 0.04 }, - "stability.stable-image-core-v1:1": { - "litellm_provider": "bedrock", - "max_input_tokens": 77, - "max_tokens": 77, - "mode": "image_generation", - "output_cost_per_image": 0.04 - }, - "stability.stable-image-ultra-v1:0": { - "litellm_provider": "bedrock", - "max_input_tokens": 77, - "max_tokens": 77, - "mode": "image_generation", - "output_cost_per_image": 0.14 - }, - "stability.stable-image-ultra-v1:1": { - "litellm_provider": "bedrock", - "max_input_tokens": 77, - "max_tokens": 77, - "mode": "image_generation", - "output_cost_per_image": 0.14 - }, "stability.stable-conservative-upscale-v1:0": { "litellm_provider": "bedrock", "max_input_tokens": 77, @@ -24693,6 +24672,27 @@ "mode": "image_edit", "output_cost_per_image": 0.08 }, + "stability.stable-image-core-v1:1": { + "litellm_provider": "bedrock", + "max_input_tokens": 77, + "max_tokens": 77, + "mode": "image_generation", + "output_cost_per_image": 0.04 + }, + "stability.stable-image-ultra-v1:0": { + "litellm_provider": "bedrock", + "max_input_tokens": 77, + "max_tokens": 77, + "mode": "image_generation", + "output_cost_per_image": 0.14 + }, + "stability.stable-image-ultra-v1:1": { + "litellm_provider": "bedrock", + "max_input_tokens": 77, + "max_tokens": 77, + "mode": "image_generation", + "output_cost_per_image": 0.14 + }, "standard/1024-x-1024/dall-e-3": { "input_cost_per_pixel": 3.81469e-08, "litellm_provider": "openai", diff --git a/litellm/types/utils.py b/litellm/types/utils.py index f71ce06bcb5..f39afbfc2e0 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -2852,6 +2852,7 @@ all_litellm_params = ( "prompt_label", "shared_session", "search_tool_name", + "order", ] + list(StandardCallbackDynamicParams.__annotations__.keys()) + list(CustomPricingLiteLLMParams.model_fields.keys())