diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c2e4f80a4..190c2adda3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.40.4" + ".": "1.40.5" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index aaf31653a0..4ee946c4df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.40.5 (2024-08-12) + +Full Changelog: [v1.40.4...v1.40.5](https://github.com/openai/openai-python/compare/v1.40.4...v1.40.5) + +### Documentation + +* **helpers:** make async client usage more clear ([34e1edf](https://github.com/openai/openai-python/commit/34e1edf29d6008df7196aaebc45172fa536c6410)), closes [#1639](https://github.com/openai/openai-python/issues/1639) + ## 1.40.4 (2024-08-12) Full Changelog: [v1.40.3...v1.40.4](https://github.com/openai/openai-python/compare/v1.40.3...v1.40.4) diff --git a/helpers.md b/helpers.md index 2e0d314b50..965dd6e23c 100644 --- a/helpers.md +++ b/helpers.md @@ -139,6 +139,10 @@ It also supports all aforementioned [parsing helpers](#parsing-helpers). Unlike `.create(stream=True)`, the `.stream()` method requires usage within a context manager to prevent accidental leakage of the response: ```py +from openai import AsyncOpenAI + +client = AsyncOpenAI() + async with client.beta.chat.completions.stream( model='gpt-4o-2024-08-06', messages=[...], diff --git a/pyproject.toml b/pyproject.toml index e7436330a5..1e094d14a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai" -version = "1.40.4" +version = "1.40.5" description = "The official Python library for the openai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openai/_version.py b/src/openai/_version.py index bbf4d8303c..d416db5cac 100644 --- a/src/openai/_version.py +++ b/src/openai/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openai" -__version__ = "1.40.4" # x-release-please-version +__version__ = "1.40.5" # x-release-please-version