Skip to content
Merged
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 @@
{
".": "1.23.0"
".": "1.23.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-46640c1b468813b828be61b1af5cb5450f9555c4c757c5a740189906a8d56672.yml
openapi_spec_hash: 1d5845ae61d2c0a143db43d579b048c5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-994dba9c79ac2c892333168717abd8ffe2cb4d84d67d7e69c6cf9e566500d4dd.yml
openapi_spec_hash: 9720f3c873048c15f1f3c8f95f15ecd3
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.23.1 (2025-04-22)

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

### Bug Fixes

* **client:** revert "send all configured auth headers" ([8a2045e](https://github.com/Finch-API/finch-api-python/commit/8a2045ebf381fe2081ced51d743dfd5687171133))

## 1.23.0 (2025-04-21)

Full Changelog: [v1.22.0...v1.23.0](https://github.com/Finch-API/finch-api-python/compare/v1.22.0...v1.23.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 = "finch-api"
version = "1.23.0"
version = "1.23.1"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
12 changes: 10 additions & 2 deletions src/finch/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ def qs(self) -> Querystring:
@property
@override
def auth_headers(self) -> dict[str, str]:
return {**self._bearer_auth, **self._basic_auth}
if self._bearer_auth:
return self._bearer_auth
if self._basic_auth:
return self._basic_auth
return {}

@property
def _bearer_auth(self) -> dict[str, str]:
Expand Down Expand Up @@ -451,7 +455,11 @@ def qs(self) -> Querystring:
@property
@override
def auth_headers(self) -> dict[str, str]:
return {**self._bearer_auth, **self._basic_auth}
if self._bearer_auth:
return self._bearer_auth
if self._basic_auth:
return self._basic_auth
return {}

@property
def _bearer_auth(self) -> dict[str, str]:
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_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__ = "finch"
__version__ = "1.23.0" # x-release-please-version
__version__ = "1.23.1" # x-release-please-version