From 40ff79655c5768d27eaca67a4848fd4abb5f2af0 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Fri, 6 Feb 2026 18:20:03 +0530 Subject: [PATCH] Add not_available in inference_geo --- litellm/llms/anthropic/cost_calculation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/cost_calculation.py b/litellm/llms/anthropic/cost_calculation.py index a1a2803c2cb..11b61cc92f0 100644 --- a/litellm/llms/anthropic/cost_calculation.py +++ b/litellm/llms/anthropic/cost_calculation.py @@ -23,7 +23,7 @@ def cost_per_token(model: str, usage: "Usage") -> Tuple[float, float]: Tuple[float, float] - prompt_cost_in_usd, completion_cost_in_usd """ # If usage has inference_geo, prepend it as prefix to model name - if hasattr(usage, "inference_geo") and usage.inference_geo and usage.inference_geo.lower() != "global": + if hasattr(usage, "inference_geo") and usage.inference_geo and usage.inference_geo.lower() not in ["global", "not_available"]: model_with_geo_prefix = f"{usage.inference_geo}/{model}" else: model_with_geo_prefix = model