Skip to content

Commit e55631c

Browse files
fix(types): correct timestamp types to int in Response model
1 parent 839ba12 commit e55631c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 152
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-fa32d6e7d961e6a9090bfd42dada0302b1b11c40308587ea36bd46be854f33ab.yml
3-
openapi_spec_hash: e582137699583c1fb37ddb0553a8a2d0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5b98524f8deee980c0dc96ceef2dd29d3e46c0ef56a3e68c6fef6e0ea6452bd0.yml
3+
openapi_spec_hash: 2ce630b5996b5c36aaf8be25d0c41183
44
config_hash: 2b2791e02f87210a840b88c95ccefd31

src/openai/types/responses/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Response(BaseModel):
6060
id: str
6161
"""Unique identifier for this Response."""
6262

63-
created_at: float
63+
created_at: int
6464
"""Unix timestamp (in seconds) of when this Response was created."""
6565

6666
error: Optional[ResponseError] = None
@@ -165,7 +165,7 @@ class Response(BaseModel):
165165
[Learn more](https://platform.openai.com/docs/guides/background).
166166
"""
167167

168-
completed_at: Optional[float] = None
168+
completed_at: Optional[int] = None
169169
"""
170170
Unix timestamp (in seconds) of when this Response was completed. Only present
171171
when the status is `completed`.

0 commit comments

Comments
 (0)