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: