From d4755c8284f0bc14d671cf89ad7dc15fce9d682d Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Wed, 18 Feb 2026 11:29:31 -0300 Subject: [PATCH] fix(tests): add inference_geo to model prices JSON schema The model_prices_and_context_window_backup.json file has 'inference_geo' fields (e.g. on 'us/claude-sonnet-4-6') for geo-prefixed Anthropic models used in cost calculation, but the JSON schema validator in test_utils.py did not include 'inference_geo' as an allowed property. This caused test_aaamodel_prices_and_context_window_json_is_valid to fail with: Additional properties are not allowed ('inference_geo' was unexpected) Co-Authored-By: Claude Sonnet 4.6 --- tests/test_litellm/test_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py index 7374a60579..7b29a4d90a 100644 --- a/tests/test_litellm/test_utils.py +++ b/tests/test_litellm/test_utils.py @@ -580,6 +580,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid(): "annotation_cost_per_page": {"type": "number"}, "ocr_cost_per_page": {"type": "number"}, "code_interpreter_cost_per_session": {"type": "number"}, + "inference_geo": {"type": "string"}, "litellm_provider": {"type": "string"}, "max_audio_length_hours": {"type": "number"}, "max_audio_per_prompt": {"type": "number"},