diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6b2b7448..2215e7a5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0-alpha.71" + ".": "0.2.0-alpha.72" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ffd67e66..7635fd87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.2.0-alpha.72 (2025-07-17) + +Full Changelog: [v0.2.0-alpha.71...v0.2.0-alpha.72](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.71...v0.2.0-alpha.72) + +### Bug Fixes + +* **bedrock:** accept size positional argument ([94366df](https://github.com/openlayer-ai/openlayer-python/commit/94366df52be8a7f754ccf9cd01266634b29ae6a6)) + ## 0.2.0-alpha.71 (2025-07-16) Full Changelog: [v0.2.0-alpha.70...v0.2.0-alpha.71](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.70...v0.2.0-alpha.71) diff --git a/pyproject.toml b/pyproject.toml index 447f6079..01262e3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openlayer" -version = "0.2.0-alpha.71" +version = "0.2.0-alpha.72" description = "The official Python library for the openlayer API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/openlayer/_version.py b/src/openlayer/_version.py index ae7f5681..4c55c921 100644 --- a/src/openlayer/_version.py +++ b/src/openlayer/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "openlayer" -__version__ = "0.2.0-alpha.71" # x-release-please-version +__version__ = "0.2.0-alpha.72" # x-release-please-version diff --git a/src/openlayer/lib/integrations/bedrock_tracer.py b/src/openlayer/lib/integrations/bedrock_tracer.py index 255b0e31..e1dca78c 100644 --- a/src/openlayer/lib/integrations/bedrock_tracer.py +++ b/src/openlayer/lib/integrations/bedrock_tracer.py @@ -156,8 +156,11 @@ def handle_non_streaming_invoke( ) # Reset response body for return (since we read it) + response_bytes = json.dumps(response_data).encode("utf-8") response["body"] = type( - "MockBody", (), {"read": lambda: json.dumps(response_data).encode("utf-8")} + "MockBody", + (), + {"read": lambda size=-1: response_bytes[:size] if size > 0 else response_bytes}, )() return response