From 855761d041ee5c9f276e0170b9d8374824c8b3b6 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 12 Nov 2024 17:47:31 -0800 Subject: [PATCH] fix test_cost_azure_gpt_35 --- litellm/cost_calculator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/cost_calculator.py b/litellm/cost_calculator.py index 6ebec8529..0aa8a8e36 100644 --- a/litellm/cost_calculator.py +++ b/litellm/cost_calculator.py @@ -459,8 +459,6 @@ def _select_model_name_for_cost_calc( elif return_model is None and hasattr(completion_response, "get"): return_model = completion_response.get("model", "") # type: ignore - elif hasattr(completion_response, "model"): - return_model = completion_response.model # type: ignore hidden_params = getattr(completion_response, "_hidden_params", None) if hidden_params is not None: