Skip to content

Commit c2ee28c

Browse files
feat(api): type updates for conversations, reasoning_effort and results for evals
1 parent 369d10a commit c2ee28c

30 files changed

+261
-234
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d30ff992a48873c1466c49f3c01f2ec8933faebff23424748f8d056065b1bcef.yml
3-
openapi_spec_hash: e933ec43b46f45c348adb78840e5808d
4-
config_hash: bf45940f0a7805b4ec2017eecdd36893
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-380330a93b5d010391ca3b36ea193c5353b0dfdf2ddd02789ef84a84ce427e82.yml
3+
openapi_spec_hash: 859703234259ecdd2a3c6f4de88eb504
4+
config_hash: b619b45c1e7facf819f902dee8fa4f97

api.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -991,22 +991,17 @@ Types:
991991
```python
992992
from openai.types.conversations import (
993993
ComputerScreenshotContent,
994-
ContainerFileCitationBody,
995994
Conversation,
996995
ConversationDeleted,
997996
ConversationDeletedResource,
998-
FileCitationBody,
999-
InputFileContent,
1000-
InputImageContent,
1001-
InputTextContent,
1002-
LobProb,
1003997
Message,
1004-
OutputTextContent,
1005-
RefusalContent,
1006998
SummaryTextContent,
1007999
TextContent,
1008-
TopLogProb,
1009-
URLCitationBody,
1000+
InputTextContent,
1001+
OutputTextContent,
1002+
RefusalContent,
1003+
InputImageContent,
1004+
InputFileContent,
10101005
)
10111006
```
10121007

src/openai/types/conversations/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
from __future__ import annotations
44

55
from .message import Message as Message
6-
from .lob_prob import LobProb as LobProb
76
from .conversation import Conversation as Conversation
87
from .text_content import TextContent as TextContent
9-
from .top_log_prob import TopLogProb as TopLogProb
108
from .refusal_content import RefusalContent as RefusalContent
119
from .item_list_params import ItemListParams as ItemListParams
1210
from .conversation_item import ConversationItem as ConversationItem
13-
from .url_citation_body import URLCitationBody as URLCitationBody
14-
from .file_citation_body import FileCitationBody as FileCitationBody
1511
from .input_file_content import InputFileContent as InputFileContent
1612
from .input_text_content import InputTextContent as InputTextContent
1713
from .item_create_params import ItemCreateParams as ItemCreateParams
1814
from .input_image_content import InputImageContent as InputImageContent
1915
from .output_text_content import OutputTextContent as OutputTextContent
2016
from .item_retrieve_params import ItemRetrieveParams as ItemRetrieveParams
2117
from .summary_text_content import SummaryTextContent as SummaryTextContent
18+
from .refusal_content_param import RefusalContentParam as RefusalContentParam
2219
from .conversation_item_list import ConversationItemList as ConversationItemList
20+
from .input_file_content_param import InputFileContentParam as InputFileContentParam
21+
from .input_text_content_param import InputTextContentParam as InputTextContentParam
22+
from .input_image_content_param import InputImageContentParam as InputImageContentParam
23+
from .output_text_content_param import OutputTextContentParam as OutputTextContentParam
2324
from .conversation_create_params import ConversationCreateParams as ConversationCreateParams
2425
from .conversation_update_params import ConversationUpdateParams as ConversationUpdateParams
2526
from .computer_screenshot_content import ComputerScreenshotContent as ComputerScreenshotContent
26-
from .container_file_citation_body import ContainerFileCitationBody as ContainerFileCitationBody
2727
from .conversation_deleted_resource import ConversationDeletedResource as ConversationDeletedResource

src/openai/types/conversations/container_file_citation_body.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/openai/types/conversations/file_citation_body.py

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
4-
from typing_extensions import Literal
5-
6-
from ..._models import BaseModel
3+
from ..responses.response_input_file import ResponseInputFile
74

85
__all__ = ["InputFileContent"]
96

10-
11-
class InputFileContent(BaseModel):
12-
file_id: Optional[str] = None
13-
"""The ID of the file to be sent to the model."""
14-
15-
type: Literal["input_file"]
16-
"""The type of the input item. Always `input_file`."""
17-
18-
file_url: Optional[str] = None
19-
"""The URL of the file to be sent to the model."""
20-
21-
filename: Optional[str] = None
22-
"""The name of the file to be sent to the model."""
7+
InputFileContent = ResponseInputFile
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from ..responses.response_input_file_param import ResponseInputFileParam
6+
7+
InputFileContentParam = ResponseInputFileParam
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
4-
from typing_extensions import Literal
5-
6-
from ..._models import BaseModel
3+
from ..responses.response_input_image import ResponseInputImage
74

85
__all__ = ["InputImageContent"]
96

10-
11-
class InputImageContent(BaseModel):
12-
detail: Literal["low", "high", "auto"]
13-
"""The detail level of the image to be sent to the model.
14-
15-
One of `high`, `low`, or `auto`. Defaults to `auto`.
16-
"""
17-
18-
file_id: Optional[str] = None
19-
"""The ID of the file to be sent to the model."""
20-
21-
image_url: Optional[str] = None
22-
"""The URL of the image to be sent to the model.
23-
24-
A fully qualified URL or base64 encoded image in a data URL.
25-
"""
26-
27-
type: Literal["input_image"]
28-
"""The type of the input item. Always `input_image`."""
7+
InputImageContent = ResponseInputImage
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from ..responses.response_input_image_param import ResponseInputImageParam
6+
7+
InputImageContentParam = ResponseInputImageParam
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing_extensions import Literal
4-
5-
from ..._models import BaseModel
3+
from ..responses.response_input_text import ResponseInputText
64

75
__all__ = ["InputTextContent"]
86

9-
10-
class InputTextContent(BaseModel):
11-
text: str
12-
"""The text input to the model."""
13-
14-
type: Literal["input_text"]
15-
"""The type of the input item. Always `input_text`."""
7+
InputTextContent = ResponseInputText

0 commit comments

Comments
 (0)