Skip to content

Commit faed5ca

Browse files
release: 1.37.1 (#675)
* codegen metadata * fix(client): close streams without requiring full consumption * chore(internal/tests): avoid race condition with implicit client cleanup * release: 1.37.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent b95a421 commit faed5ca

File tree

7 files changed

+216
-171
lines changed

7 files changed

+216
-171
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.37.0"
2+
".": "1.37.1"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-0105d239fcaf84750c886dfa6c2cfbf2b2087f89a48f8827c4cbe28479ebfb13.yml
33
openapi_spec_hash: 34895c3d3c137fb9f5a019ac5370afbb
4-
config_hash: 6d3585c0032e08d723d077d660fc8448
4+
config_hash: 5c64f384746e7570c10f19fe241062a7

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 1.37.1 (2025-10-31)
4+
5+
Full Changelog: [v1.37.0...v1.37.1](https://github.com/Finch-API/finch-api-python/compare/v1.37.0...v1.37.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** close streams without requiring full consumption ([b614e0b](https://github.com/Finch-API/finch-api-python/commit/b614e0babf5c210ef96365d996a3bf0f72c5cd4c))
10+
11+
12+
### Chores
13+
14+
* **internal/tests:** avoid race condition with implicit client cleanup ([f0b4163](https://github.com/Finch-API/finch-api-python/commit/f0b4163bb201412cdd322238191b74376670a05e))
15+
* **ownership:** move from data to platform team ([#676](https://github.com/Finch-API/finch-api-python/issues/676)) ([b95a421](https://github.com/Finch-API/finch-api-python/commit/b95a421af86e436c2952b3c915b5cd9fadbd1330))
16+
317
## 1.37.0 (2025-10-27)
418

519
Full Changelog: [v1.36.0...v1.37.0](https://github.com/Finch-API/finch-api-python/compare/v1.36.0...v1.37.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "finch-api"
3-
version = "1.37.0"
3+
version = "1.37.1"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/finch/_streaming.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ def __stream__(self) -> Iterator[_T]:
5757
for sse in iterator:
5858
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
5959

60-
# Ensure the entire stream is consumed
61-
for _sse in iterator:
62-
...
60+
# As we might not fully consume the response stream, we need to close it explicitly
61+
response.close()
6362

6463
def __enter__(self) -> Self:
6564
return self
@@ -121,9 +120,8 @@ async def __stream__(self) -> AsyncIterator[_T]:
121120
async for sse in iterator:
122121
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
123122

124-
# Ensure the entire stream is consumed
125-
async for _sse in iterator:
126-
...
123+
# As we might not fully consume the response stream, we need to close it explicitly
124+
await response.aclose()
127125

128126
async def __aenter__(self) -> Self:
129127
return self

src/finch/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "finch"
4-
__version__ = "1.37.0" # x-release-please-version
4+
__version__ = "1.37.1" # x-release-please-version

0 commit comments

Comments
 (0)