From cf0b701c9acdb6c955228bdd88db46476bfd7dbf Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 20 Jun 2026 18:26:38 +0000 Subject: [PATCH] fix(fireworks_ai): correct glm-5p2 context window to 1,040,000 tokens Co-authored-by: Mateo Wang --- litellm/model_prices_and_context_window_backup.json | 4 ++-- model_prices_and_context_window.json | 4 ++-- tests/test_litellm/test_utils.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 7a5f8b9e1e3..34378835439 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -14734,7 +14734,7 @@ "cache_read_input_token_cost": 2.6e-07, "input_cost_per_token": 1.4e-06, "litellm_provider": "fireworks_ai", - "max_input_tokens": 1048576, + "max_input_tokens": 1040000, "max_output_tokens": 131072, "max_tokens": 131072, "mode": "chat", @@ -15148,7 +15148,7 @@ "cache_read_input_token_cost": 2.6e-07, "input_cost_per_token": 1.4e-06, "litellm_provider": "fireworks_ai", - "max_input_tokens": 1048576, + "max_input_tokens": 1040000, "max_output_tokens": 131072, "max_tokens": 131072, "mode": "chat", diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 47b7190185e..27b5289bc73 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -14742,7 +14742,7 @@ "cache_read_input_token_cost": 2.6e-07, "input_cost_per_token": 1.4e-06, "litellm_provider": "fireworks_ai", - "max_input_tokens": 1048576, + "max_input_tokens": 1040000, "max_output_tokens": 131072, "max_tokens": 131072, "mode": "chat", @@ -15156,7 +15156,7 @@ "cache_read_input_token_cost": 2.6e-07, "input_cost_per_token": 1.4e-06, "litellm_provider": "fireworks_ai", - "max_input_tokens": 1048576, + "max_input_tokens": 1040000, "max_output_tokens": 131072, "max_tokens": 131072, "mode": "chat", diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py index 44e0b55ee3b..a93a32fc643 100644 --- a/tests/test_litellm/test_utils.py +++ b/tests/test_litellm/test_utils.py @@ -4250,7 +4250,7 @@ _FIREWORKS_MODELS = [ 1.4e-06, 4.4e-06, 2.6e-07, - 1048576, + 1040000, 131072, False, True,