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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix linting error
Ishaan Jaff7319fef29d72
diff --git a/litellm/main.py b/litellm/main.pyindex 903e0e938b0..b90030a6bb6 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -3906,7 +3906,8 @@ async def atext_completion(): ## CACHING SCENARIOif isinstance(init_response, dict):response = TextCompletionResponse(**init_response)- response = init_response+ else:+ response = init_responseelif asyncio.iscoroutine(init_response):response = await init_responseelse: