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 @@
{
".": "0.12.5"
".": "0.12.6"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.12.6 (2026-01-08)

Full Changelog: [v0.12.5...v0.12.6](https://github.com/openlayer-ai/openlayer-python/compare/v0.12.5...v0.12.6)

### Bug Fixes

* **client:** loosen auth header validation ([0d31697](https://github.com/openlayer-ai/openlayer-python/commit/0d3169703d4c9c35ad54803b8112d2c412537ebd))

## 0.12.5 (2026-01-07)

Full Changelog: [v0.11.3...v0.12.5](https://github.com/openlayer-ai/openlayer-python/compare/v0.11.3...v0.12.5)
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 = "openlayer"
version = "0.12.5"
version = "0.12.6"
description = "The official Python library for the openlayer API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
8 changes: 2 additions & 6 deletions src/openlayer/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ def default_headers(self) -> dict[str, str | Omit]:

@override
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
if self.api_key and headers.get("Authorization"):
return
if isinstance(custom_headers.get("Authorization"), Omit):
if headers.get("Authorization") or isinstance(custom_headers.get("Authorization"), Omit):
return

raise TypeError(
Expand Down Expand Up @@ -374,9 +372,7 @@ def default_headers(self) -> dict[str, str | Omit]:

@override
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
if self.api_key and headers.get("Authorization"):
return
if isinstance(custom_headers.get("Authorization"), Omit):
if headers.get("Authorization") or isinstance(custom_headers.get("Authorization"), Omit):
return

raise TypeError(
Expand Down
2 changes: 1 addition & 1 deletion src/openlayer/_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__ = "openlayer"
__version__ = "0.12.5" # x-release-please-version
__version__ = "0.12.6" # x-release-please-version