Skip to content

Commit 8e45820

Browse files
release: 1.23.1 (#654)
* fix(client): revert "send all configured auth headers" This reverts commit 861ed75. * codegen metadata * release: 1.23.1 --------- Co-authored-by: Robert Craigie <[email protected]> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent f0a48c8 commit 8e45820

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.23.0"
2+
".": "1.23.1"
33
}

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-46640c1b468813b828be61b1af5cb5450f9555c4c757c5a740189906a8d56672.yml
3-
openapi_spec_hash: 1d5845ae61d2c0a143db43d579b048c5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-994dba9c79ac2c892333168717abd8ffe2cb4d84d67d7e69c6cf9e566500d4dd.yml
3+
openapi_spec_hash: 9720f3c873048c15f1f3c8f95f15ecd3
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.23.1 (2025-04-22)
4+
5+
Full Changelog: [v1.23.0...v1.23.1](https://github.com/Finch-API/finch-api-python/compare/v1.23.0...v1.23.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** revert "send all configured auth headers" ([8a2045e](https://github.com/Finch-API/finch-api-python/commit/8a2045ebf381fe2081ced51d743dfd5687171133))
10+
311
## 1.23.0 (2025-04-21)
412

513
Full Changelog: [v1.22.0...v1.23.0](https://github.com/Finch-API/finch-api-python/compare/v1.22.0...v1.23.0)

pyproject.toml

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

src/finch/_client.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ def qs(self) -> Querystring:
147147
@property
148148
@override
149149
def auth_headers(self) -> dict[str, str]:
150-
return {**self._bearer_auth, **self._basic_auth}
150+
if self._bearer_auth:
151+
return self._bearer_auth
152+
if self._basic_auth:
153+
return self._basic_auth
154+
return {}
151155

152156
@property
153157
def _bearer_auth(self) -> dict[str, str]:
@@ -451,7 +455,11 @@ def qs(self) -> Querystring:
451455
@property
452456
@override
453457
def auth_headers(self) -> dict[str, str]:
454-
return {**self._bearer_auth, **self._basic_auth}
458+
if self._bearer_auth:
459+
return self._bearer_auth
460+
if self._basic_auth:
461+
return self._basic_auth
462+
return {}
455463

456464
@property
457465
def _bearer_auth(self) -> dict[str, str]:

src/finch/_version.py

+1-1
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.23.0" # x-release-please-version
4+
__version__ = "1.23.1" # x-release-please-version

0 commit comments

Comments
 (0)