Remove redundant model assignments in utils.py

Removed redundant assignments of the 'model' variable.
This commit is contained in:
Daniele Scasciafratte 2025-11-24 09:58:55 +01:00 committed by GitHub
parent 760bce24bd
commit 135c3cc262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: