mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Remove redundant model assignments in utils.py
Removed redundant assignments of the 'model' variable.
This commit is contained in:
parent
760bce24bd
commit
135c3cc262
1 changed files with 0 additions and 3 deletions
|
|
@ -1394,7 +1394,6 @@ class ModelResponse(ModelResponseBase):
|
|||
created = int(time.time())
|
||||
else:
|
||||
created = created
|
||||
model = model
|
||||
if usage is not None:
|
||||
if isinstance(usage, dict):
|
||||
usage = Usage(**usage)
|
||||
|
|
@ -1508,7 +1507,6 @@ class EmbeddingResponse(OpenAIObject):
|
|||
if _response_headers:
|
||||
self._response_headers = _response_headers
|
||||
|
||||
model = model
|
||||
super().__init__(model=model, object=object, data=data, usage=usage) # type: ignore
|
||||
|
||||
if hidden_params:
|
||||
|
|
@ -1657,7 +1655,6 @@ class TextCompletionResponse(OpenAIObject):
|
|||
else:
|
||||
created = created
|
||||
|
||||
model = model
|
||||
if usage:
|
||||
usage = usage
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue