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(litellm_logging.py): fix linting erros
Krrish Dholakia69efc4dcddee
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex 5ade61ca41b..868c4a7c207 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -10,7 +10,7 @@ import sysimport timeimport tracebackimport uuid-from typing import Any, Callable, Dict, List, Literal, Optional+from typing import Any, Callable, Dict, List, Literal, Optional, Unionfrom pydantic import BaseModel@@ -505,7 +505,17 @@ class Logging:))- def _response_cost_calculator(self, result: BaseModel):+ def _response_cost_calculator(+ self,+ result: Union[+ ModelResponse,+ EmbeddingResponse,+ ImageResponse,+ TranscriptionResponse,+ TextCompletionResponse,+ HttpxBinaryResponseContent,+ ],+ ):"""Calculate response cost using result + logging object variables.