Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix linting error

Ishaan Jaff7319fef29d72
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: