Skip to content

Commit f5c8a62

Browse files
committed
Fix for python 3.9
1 parent 3f6744c commit f5c8a62

File tree

1 file changed

+1
-1
lines changed
  • src/yandex_cloud_ml_sdk/_chat/completions

1 file changed

+1
-1
lines changed

src/yandex_cloud_ml_sdk/_chat/completions/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _from_json(cls, *, data: dict[str, Any], sdk: SDKType) -> ChatModelResult:
144144
return cls(
145145
choices=choices,
146146
usage=usage,
147-
created=datetime.datetime.fromtimestamp(data['created'], datetime.UTC),
147+
created=datetime.datetime.utcfromtimestamp(data['created']),
148148
model=data['model'],
149149
id=data['id']
150150
)

0 commit comments

Comments
 (0)