diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3b5b7119..76ffaa06 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.21.13" + ".": "0.21.14" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b7759321..ec568225 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.21.14 (2024-07-18) + +Full Changelog: [v0.21.13...v0.21.14](https://github.com/Finch-API/finch-api-python/compare/v0.21.13...v0.21.14) + +### Chores + +* **docs:** document how to do per-request http client customization ([#440](https://github.com/Finch-API/finch-api-python/issues/440)) ([10b741f](https://github.com/Finch-API/finch-api-python/commit/10b741f8c047da09175cd32d712fd9eb7beb5500)) + ## 0.21.13 (2024-07-17) Full Changelog: [v0.21.12...v0.21.13](https://github.com/Finch-API/finch-api-python/compare/v0.21.12...v0.21.13) diff --git a/README.md b/README.md index 88c99b3b..50f338a8 100644 --- a/README.md +++ b/README.md @@ -392,6 +392,12 @@ client = Finch( ) ``` +You can also customize the client on a per-request basis by using `with_options()`: + +```python +client.with_options(http_client=DefaultHttpxClient(...)) +``` + ### Managing HTTP resources By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting. diff --git a/pyproject.toml b/pyproject.toml index 34a49788..6a238404 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "0.21.13" +version = "0.21.14" description = "The official Python library for the Finch API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/finch/_version.py b/src/finch/_version.py index e09c3c4c..a06a27ce 100644 --- a/src/finch/_version.py +++ b/src/finch/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "finch" -__version__ = "0.21.13" # x-release-please-version +__version__ = "0.21.14" # x-release-please-version