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 @@
{
".": "1.100.1"
".": "1.100.2"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-24be531010b354303d741fc9247c1f84f75978f9f7de68aca92cb4f240a04722.yml
openapi_spec_hash: 3e46f439f6a863beadc71577eb4efa15
config_hash: ed87b9139ac595a04a2162d754df2fed
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-7ef7a457c3bf05364e66e48c9ca34f31bfef1f6c9b7c15b1812346105e0abb16.yml
openapi_spec_hash: a2b1f5d8fbb62175c93b0ebea9f10063
config_hash: 76afa3236f36854a8705f1281b1990b8
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.100.2 (2025-08-19)

Full Changelog: [v1.100.1...v1.100.2](https://github.com/openai/openai-python/compare/v1.100.1...v1.100.2)

### Chores

* **api:** accurately represent shape for verbosity on Chat Completions ([c39d5fd](https://github.com/openai/openai-python/commit/c39d5fd3f5429c6d41f257669a1dd4c67a477455))

## 1.100.1 (2025-08-18)

Full Changelog: [v1.100.0...v1.100.1](https://github.com/openai/openai-python/compare/v1.100.0...v1.100.1)
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 = "1.100.1"
version = "1.100.2"
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__ = "1.100.1" # x-release-please-version
__version__ = "1.100.2" # x-release-please-version
30 changes: 6 additions & 24 deletions src/openai/resources/chat/completions/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def parse(
presence_penalty: Optional[float] | NotGiven = NOT_GIVEN,
prompt_cache_key: str | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
safety_identifier: str | NotGiven = NOT_GIVEN,
seed: Optional[int] | NotGiven = NOT_GIVEN,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -204,7 +203,6 @@ def parser(raw_completion: ChatCompletion) -> ParsedChatCompletion[ResponseForma
"prompt_cache_key": prompt_cache_key,
"reasoning_effort": reasoning_effort,
"response_format": _type_to_response_format(response_format),
"text": text,
"safety_identifier": safety_identifier,
"seed": seed,
"service_tier": service_tier,
Expand Down Expand Up @@ -267,7 +265,6 @@ def create(
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -459,7 +456,7 @@ def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream: If set to true, the model response data will be streamed to the client as it is
generated using
Expand Down Expand Up @@ -556,7 +553,6 @@ def create(
store: Optional[bool] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -757,7 +753,7 @@ def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream_options: Options for streaming response. Only set this when you set `stream: true`.

Expand Down Expand Up @@ -845,7 +841,6 @@ def create(
store: Optional[bool] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1046,7 +1041,7 @@ def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream_options: Options for streaming response. Only set this when you set `stream: true`.

Expand Down Expand Up @@ -1134,7 +1129,6 @@ def create(
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1181,7 +1175,6 @@ def create(
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"text": text,
"tool_choice": tool_choice,
"tools": tools,
"top_logprobs": top_logprobs,
Expand Down Expand Up @@ -1404,7 +1397,6 @@ def stream(
presence_penalty: Optional[float] | NotGiven = NOT_GIVEN,
prompt_cache_key: str | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
safety_identifier: str | NotGiven = NOT_GIVEN,
seed: Optional[int] | NotGiven = NOT_GIVEN,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1475,7 +1467,6 @@ def stream(
presence_penalty=presence_penalty,
prompt_cache_key=prompt_cache_key,
reasoning_effort=reasoning_effort,
text=text,
safety_identifier=safety_identifier,
seed=seed,
service_tier=service_tier,
Expand Down Expand Up @@ -1548,7 +1539,6 @@ async def parse(
presence_penalty: Optional[float] | NotGiven = NOT_GIVEN,
prompt_cache_key: str | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
safety_identifier: str | NotGiven = NOT_GIVEN,
seed: Optional[int] | NotGiven = NOT_GIVEN,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1649,7 +1639,6 @@ def parser(raw_completion: ChatCompletion) -> ParsedChatCompletion[ResponseForma
"prompt_cache_key": prompt_cache_key,
"reasoning_effort": reasoning_effort,
"response_format": _type_to_response_format(response_format),
"text": text,
"safety_identifier": safety_identifier,
"seed": seed,
"service_tier": service_tier,
Expand Down Expand Up @@ -1712,7 +1701,6 @@ async def create(
stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -1904,7 +1892,7 @@ async def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream: If set to true, the model response data will be streamed to the client as it is
generated using
Expand Down Expand Up @@ -2001,7 +1989,6 @@ async def create(
store: Optional[bool] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2202,7 +2189,7 @@ async def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream_options: Options for streaming response. Only set this when you set `stream: true`.

Expand Down Expand Up @@ -2290,7 +2277,6 @@ async def create(
store: Optional[bool] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2491,7 +2477,7 @@ async def create(
our [model distillation](https://platform.openai.com/docs/guides/distillation)
or [evals](https://platform.openai.com/docs/guides/evals) products.

Supports text and image inputs. Note: image inputs over 10MB will be dropped.
Supports text and image inputs. Note: image inputs over 8MB will be dropped.

stream_options: Options for streaming response. Only set this when you set `stream: true`.

Expand Down Expand Up @@ -2579,7 +2565,6 @@ async def create(
stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN,
stream_options: Optional[ChatCompletionStreamOptionsParam] | NotGiven = NOT_GIVEN,
temperature: Optional[float] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
tool_choice: ChatCompletionToolChoiceOptionParam | NotGiven = NOT_GIVEN,
tools: Iterable[ChatCompletionToolUnionParam] | NotGiven = NOT_GIVEN,
top_logprobs: Optional[int] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2626,7 +2611,6 @@ async def create(
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"text": text,
"tool_choice": tool_choice,
"tools": tools,
"top_logprobs": top_logprobs,
Expand Down Expand Up @@ -2849,7 +2833,6 @@ def stream(
presence_penalty: Optional[float] | NotGiven = NOT_GIVEN,
prompt_cache_key: str | NotGiven = NOT_GIVEN,
reasoning_effort: Optional[ReasoningEffort] | NotGiven = NOT_GIVEN,
text: completion_create_params.Text | NotGiven = NOT_GIVEN,
safety_identifier: str | NotGiven = NOT_GIVEN,
seed: Optional[int] | NotGiven = NOT_GIVEN,
service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -2921,7 +2904,6 @@ def stream(
presence_penalty=presence_penalty,
prompt_cache_key=prompt_cache_key,
reasoning_effort=reasoning_effort,
text=text,
safety_identifier=safety_identifier,
seed=seed,
service_tier=service_tier,
Expand Down
Loading