From 7319fef29d72122001769be3878bee773ef79325 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 10 Mar 2025 13:57:50 -0700 Subject: [PATCH] fix linting error --- litellm/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/main.py b/litellm/main.py index 903e0e938b0..b90030a6bb6 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -3906,7 +3906,8 @@ async def atext_completion( ): ## CACHING SCENARIO if isinstance(init_response, dict): response = TextCompletionResponse(**init_response) - response = init_response + else: + response = init_response elif asyncio.iscoroutine(init_response): response = await init_response else: