diff --git a/litellm/cost_calculator.py b/litellm/cost_calculator.py index 1ebfe4b8bdf..111c6568bec 100644 --- a/litellm/cost_calculator.py +++ b/litellm/cost_calculator.py @@ -606,7 +606,9 @@ def cost_per_token( service_tier=service_tier, data_residency=data_residency, ) - except Exception: + except Exception as e: # noqa: BLE001 + if "isn't mapped yet" not in str(e): + raise verbose_logger.debug( "cost_per_token: unknown model=%s, custom_llm_provider=openai. Returning 0.0, 0.0", model,