Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.50.0"
".": "2.51.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 278
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-9152683f2fa71f5555cbbb53123ec013b7c83ee6fed4333e76c22a6f48a05f1c.yml
openapi_spec_hash: c58a8c1bb1f5bb7245323db9437bd67f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-44d4add500460ed21ac9ae1d6dd4047a32a79d3b4c3a9d9754f6ecf8cbdb9eec.yml
openapi_spec_hash: 8a34ba094583f56e975067493574fa69
config_hash: ca12d10f1dbe101a81cd0376f868c674
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 2.51.0 (2026-07-30)

Full Changelog: [v2.50.0...v2.51.0](https://github.com/openai/openai-python/compare/v2.50.0...v2.51.0)

### Features

* **api:** fast tier ([8808ed2](https://github.com/openai/openai-python/commit/8808ed27952dae13fb8761f045376af5b3e5bec2))


### Bug Fixes

* **api:** add fast tier to helper methods ([6064126](https://github.com/openai/openai-python/commit/60641266ff4b296044a81fe1717c17a70ceadbf1))

## 2.50.0 (2026-07-28)

Full Changelog: [v2.49.0...v2.50.0](https://github.com/openai/openai-python/compare/v2.49.0...v2.50.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openai"
version = "2.50.0"
version = "2.51.0"
description = "The official Python library for the openai API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/openai/_version.py
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__ = "2.50.0" # x-release-please-version
__version__ = "2.51.0" # x-release-please-version
80 changes: 52 additions & 28 deletions src/openai/resources/beta/responses/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[Literal[False]] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
Expand Down Expand Up @@ -394,9 +394,13 @@ def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -609,7 +613,7 @@ def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
temperature: Optional[float] | Omit = omit,
Expand Down Expand Up @@ -782,9 +786,13 @@ def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -990,7 +998,7 @@ def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
temperature: Optional[float] | Omit = omit,
Expand Down Expand Up @@ -1163,9 +1171,13 @@ def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -1369,7 +1381,7 @@ def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[Literal[False]] | Literal[True] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
Expand Down Expand Up @@ -2109,7 +2121,7 @@ async def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[Literal[False]] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
Expand Down Expand Up @@ -2276,9 +2288,13 @@ async def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -2491,7 +2507,7 @@ async def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
temperature: Optional[float] | Omit = omit,
Expand Down Expand Up @@ -2664,9 +2680,13 @@ async def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -2872,7 +2892,7 @@ async def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
temperature: Optional[float] | Omit = omit,
Expand Down Expand Up @@ -3045,9 +3065,13 @@ async def create(
will use 'default'.
- If set to 'default', then the request will be processed with the standard
pricing and performance for the selected model.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
'[priority](https://openai.com/api-priority-processing/)', then the request
will be processed with the corresponding service tier.
- If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
include the `service_tier=fast` or `service_tier=priority` parameter for
Responses or Chat Completions. The response will show `service_tier=priority`
regardless of if you specify `service_tier=fast` or `priority` in your
request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the
Expand Down Expand Up @@ -3251,7 +3275,7 @@ async def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[response_create_params.Reasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[Literal[False]] | Literal[True] | Omit = omit,
stream_options: Optional[response_create_params.StreamOptions] | Omit = omit,
Expand Down Expand Up @@ -4995,7 +5019,7 @@ def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[beta_responses_client_event_param.ResponseCreateReasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[bool] | Omit = omit,
stream_options: Optional[beta_responses_client_event_param.ResponseCreateStreamOptions] | Omit = omit,
Expand Down Expand Up @@ -5198,7 +5222,7 @@ async def create(
prompt_cache_retention: Optional[Literal["in_memory", "24h"]] | Omit = omit,
reasoning: Optional[beta_responses_client_event_param.ResponseCreateReasoning] | Omit = omit,
safety_identifier: Optional[str] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | Omit = omit,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority", "fast"]] | Omit = omit,
store: Optional[bool] | Omit = omit,
stream: Optional[bool] | Omit = omit,
stream_options: Optional[beta_responses_client_event_param.ResponseCreateStreamOptions] | Omit = omit,
Expand Down
Loading
Loading