forked from phoenix/litellm-mirror
fix(types/utils.py): fix linting errors
This commit is contained in:
parent
c982ec88d8
commit
5add6687cc
2 changed files with 7 additions and 9 deletions
|
@ -1,12 +1,12 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
# - id: mypy
|
- id: mypy
|
||||||
# name: mypy
|
name: mypy
|
||||||
# entry: python3 -m mypy --ignore-missing-imports
|
entry: python3 -m mypy --ignore-missing-imports
|
||||||
# language: system
|
language: system
|
||||||
# types: [python]
|
types: [python]
|
||||||
# files: ^litellm/
|
files: ^litellm/
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort
|
name: isort
|
||||||
entry: isort
|
entry: isort
|
||||||
|
|
|
@ -976,9 +976,7 @@ class ImageResponse(OpenAIImageResponse):
|
||||||
else:
|
else:
|
||||||
created = int(time.time())
|
created = int(time.time())
|
||||||
|
|
||||||
_data = {"data": data, "created": created}
|
super().__init__(created=created, data=data)
|
||||||
|
|
||||||
super().__init__(**_data)
|
|
||||||
self.usage = {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}
|
self.usage = {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}
|
||||||
|
|
||||||
def __contains__(self, key):
|
def __contains__(self, key):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue