Skip to content
Open
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.20.0"
".": "2.20.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 148
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-47ef7e0aaa2f2052404041650c9b4d7d8c9c51c45ef2cb081548f329c3f81a6a.yml
openapi_spec_hash: 0207b30cf74121a12c1647e25463cee9
config_hash: 8dca0f2dc2706c07cf2f8d0ed4dc062e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-1595c7e4e1d7bf7eae2e49ad800316e13b69ffb18bff2a2f55236fce792deb53.yml
openapi_spec_hash: c3a3a0d8d4bbf11179149244f017a6dc
config_hash: 948733484caf41e71093c6582dbc319c
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 2.20.1 (2026-02-13)

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

### Chores

* **internal:** fix lint error on Python 3.14 ([534f215](https://github.com/openai/openai-python/commit/534f215941f504443d63509e872409a0b1236452))


### Documentation

* update comment ([63def23](https://github.com/openai/openai-python/commit/63def23b7acd5c6dacf03337fe1bd08439d1dba8))

## 2.20.0 (2026-02-10)

Full Changelog: [v2.19.0...v2.20.0](https://github.com/openai/openai-python/compare/v2.19.0...v2.20.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.20.0"
version = "2.20.1"
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/_utils/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def is_union(tp: Optional[Type[Any]]) -> bool:
else:
import types

return tp is Union or tp is types.UnionType
return tp is Union or tp is types.UnionType # type: ignore[comparison-overlap]


def is_typeddict(tp: Type[Any]) -> bool:
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.20.0" # x-release-please-version
__version__ = "2.20.1" # x-release-please-version
16 changes: 6 additions & 10 deletions src/openai/resources/chat/completions/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,12 +1346,10 @@ def list(

limit: Number of Chat Completions to retrieve.

metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
for storing additional information about the object in a structured format, and
querying for objects via API or the dashboard.
metadata:
A list of metadata keys to filter the Chat Completions by. Example:

Keys are strings with a maximum length of 64 characters. Values are strings with
a maximum length of 512 characters.
`metadata[key1]=value1&metadata[key2]=value2`

model: The model used to generate the Chat Completions.

Expand Down Expand Up @@ -2832,12 +2830,10 @@ def list(

limit: Number of Chat Completions to retrieve.

metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
for storing additional information about the object in a structured format, and
querying for objects via API or the dashboard.
metadata:
A list of metadata keys to filter the Chat Completions by. Example:

Keys are strings with a maximum length of 64 characters. Values are strings with
a maximum length of 512 characters.
`metadata[key1]=value1&metadata[key2]=value2`

model: The model used to generate the Chat Completions.

Expand Down
8 changes: 2 additions & 6 deletions src/openai/types/chat/completion_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ class CompletionListParams(TypedDict, total=False):
"""Number of Chat Completions to retrieve."""

metadata: Optional[Metadata]
"""Set of 16 key-value pairs that can be attached to an object.
"""A list of metadata keys to filter the Chat Completions by. Example:

This can be useful for storing additional information about the object in a
structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with
a maximum length of 512 characters.
`metadata[key1]=value1&metadata[key2]=value2`
"""

model: str
Expand Down