-
Notifications
You must be signed in to change notification settings - Fork 4.3k
release: 2.0.0 #2671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stainless-app
merged 2 commits into
main
from
release-please--branches--main--changes--next
Sep 30, 2025
+347
−27
Merged
release: 2.0.0 #2671
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "1.109.1" | ||
".": "2.0.0" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
configured_endpoints: 118 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-410219ea680089f02bb55163c673919703f946c3d6ad7ff5d6f607121d5287d5.yml | ||
openapi_spec_hash: 2b3eee95d3f6796c7a61dfddf694a59a | ||
config_hash: 666d6bb4b564f0d9d431124b5d1a0665 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-49233088b5e73dbb96bf7af27be3d4547632e3db1c2b00f14184900613325bbc.yml | ||
openapi_spec_hash: b34f14b141d5019244112901c5c7c2d8 | ||
config_hash: 94e9ba08201c3d1ca46e093e6a0138fa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
__title__ = "openai" | ||
__version__ = "1.109.1" # x-release-please-version | ||
__version__ = "2.0.0" # x-release-please-version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .._models import BaseModel | ||
|
||
__all__ = ["BatchUsage", "InputTokensDetails", "OutputTokensDetails"] | ||
|
||
|
||
class InputTokensDetails(BaseModel): | ||
cached_tokens: int | ||
"""The number of tokens that were retrieved from the cache. | ||
|
||
[More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching). | ||
""" | ||
|
||
|
||
class OutputTokensDetails(BaseModel): | ||
reasoning_tokens: int | ||
"""The number of reasoning tokens.""" | ||
|
||
|
||
class BatchUsage(BaseModel): | ||
input_tokens: int | ||
"""The number of input tokens.""" | ||
|
||
input_tokens_details: InputTokensDetails | ||
"""A detailed breakdown of the input tokens.""" | ||
|
||
output_tokens: int | ||
"""The number of output tokens.""" | ||
|
||
output_tokens_details: OutputTokensDetails | ||
"""A detailed breakdown of the output tokens.""" | ||
|
||
total_tokens: int | ||
"""The total number of tokens used.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
src/openai/types/responses/response_custom_tool_call_output.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/openai/types/responses/response_function_call_output_item.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import Union | ||
from typing_extensions import Annotated, TypeAlias | ||
|
||
from ..._utils import PropertyInfo | ||
from .response_input_file_content import ResponseInputFileContent | ||
from .response_input_text_content import ResponseInputTextContent | ||
from .response_input_image_content import ResponseInputImageContent | ||
|
||
__all__ = ["ResponseFunctionCallOutputItem"] | ||
|
||
ResponseFunctionCallOutputItem: TypeAlias = Annotated[ | ||
Union[ResponseInputTextContent, ResponseInputImageContent, ResponseInputFileContent], | ||
PropertyInfo(discriminator="type"), | ||
] |
10 changes: 10 additions & 0 deletions
10
src/openai/types/responses/response_function_call_output_item_list.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List | ||
from typing_extensions import TypeAlias | ||
|
||
from .response_function_call_output_item import ResponseFunctionCallOutputItem | ||
|
||
__all__ = ["ResponseFunctionCallOutputItemList"] | ||
|
||
ResponseFunctionCallOutputItemList: TypeAlias = List[ResponseFunctionCallOutputItem] |
18 changes: 18 additions & 0 deletions
18
src/openai/types/responses/response_function_call_output_item_list_param.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Union | ||
from typing_extensions import TypeAlias | ||
|
||
from .response_input_file_content_param import ResponseInputFileContentParam | ||
from .response_input_text_content_param import ResponseInputTextContentParam | ||
from .response_input_image_content_param import ResponseInputImageContentParam | ||
|
||
__all__ = ["ResponseFunctionCallOutputItemListParam", "ResponseFunctionCallOutputItemParam"] | ||
|
||
ResponseFunctionCallOutputItemParam: TypeAlias = Union[ | ||
ResponseInputTextContentParam, ResponseInputImageContentParam, ResponseInputFileContentParam | ||
] | ||
|
||
ResponseFunctionCallOutputItemListParam: TypeAlias = List[ResponseFunctionCallOutputItemParam] |
16 changes: 16 additions & 0 deletions
16
src/openai/types/responses/response_function_call_output_item_param.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Union | ||
from typing_extensions import TypeAlias | ||
|
||
from .response_input_file_content_param import ResponseInputFileContentParam | ||
from .response_input_text_content_param import ResponseInputTextContentParam | ||
from .response_input_image_content_param import ResponseInputImageContentParam | ||
|
||
__all__ = ["ResponseFunctionCallOutputItemParam"] | ||
|
||
ResponseFunctionCallOutputItemParam: TypeAlias = Union[ | ||
ResponseInputTextContentParam, ResponseInputImageContentParam, ResponseInputFileContentParam | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.