Skip to content

Commit 56ad9ca

Browse files
fix(types): make type required in ResponseInputMessageItem
1 parent 78c764b commit 56ad9ca

2 files changed

Lines changed: 5 additions & 5 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-55ef7034334e938c30656a404ce5e21466103be87542a796425346299f450404.yml
3-
openapi_spec_hash: 4a5bfd2ee4ad47f5b7cf6f1ad08d5d7f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-0fea07225431c8d0cf5fc1a70c9363a91d259f7a169f410717e162de1b24e489.yml
3+
openapi_spec_hash: 41b34c1678ec0e95daf62ca4cd52c8f8
44
config_hash: 96fbf82cf74a44ccd513f5acf0956ffd

src/openai/types/responses/response_input_message_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class ResponseInputMessageItem(BaseModel):
2222
role: Literal["user", "system", "developer"]
2323
"""The role of the message input. One of `user`, `system`, or `developer`."""
2424

25+
type: Literal["message"]
26+
"""The type of the message input. Always set to `message`."""
27+
2528
status: Optional[Literal["in_progress", "completed", "incomplete"]] = None
2629
"""The status of item.
2730
2831
One of `in_progress`, `completed`, or `incomplete`. Populated when items are
2932
returned via API.
3033
"""
31-
32-
type: Optional[Literal["message"]] = None
33-
"""The type of the message input. Always set to `message`."""

0 commit comments

Comments
 (0)