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(types/utils.py): fix linting errors
Krrish Dholakia5add6687cc48
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex d429bc6b8c1..a33473b7246 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -1,12 +1,12 @@repos:- repo: localhooks:- # - id: mypy- # name: mypy- # entry: python3 -m mypy --ignore-missing-imports- # language: system- # types: [python]- # files: ^litellm/+ - id: mypy+ name: mypy+ entry: python3 -m mypy --ignore-missing-imports+ language: system+ types: [python]+ files: ^litellm/- id: isortname: isortentry: isortdiff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex e9247a71f3a..be77821adb0 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -976,9 +976,7 @@ class ImageResponse(OpenAIImageResponse):else:created = int(time.time())- _data = {"data": data, "created": created}-- super().__init__(**_data)+ super().__init__(created=created, data=data)self.usage = {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}def __contains__(self, key):