Skip to content

Commit 5d2349a

Browse files
committed
Update aws-sdk-bedrock-runtime to v0.1.1
1 parent 15b9d61 commit 5d2349a

6 files changed

Lines changed: 31 additions & 5 deletions

File tree

clients/aws-sdk-bedrock-runtime/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
## Unreleased
44

5+
## v0.1.1
6+
7+
### API Changes
8+
* New stop reason (`MODEL_CONTEXT_WINDOW_EXCEEDED`) for Converse and ConverseStream.
9+
10+
### Enhancements
11+
* Improvements to the underlying AWS CRT HTTP client result in a signifigant decrease in CPU usage. Addresses [aws-sdk-python#11](https://github.com/awslabs/aws-sdk-python/issues/11).
12+
13+
### Dependencies
14+
15+
* **Updated**: `smithy_http[awscrt]` from `~=0.1.0` to `~=0.2.0`.
16+
517
### Breaking
618
- Removed unused `serialize.py` and `deserialize.py` modules.
719

clients/aws-sdk-bedrock-runtime/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
project = "Amazon Bedrock Runtime"
99
author = "Amazon Web Services"
10-
release = "0.1.0"
10+
release = "0.1.1"
1111

1212
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
1313

clients/aws-sdk-bedrock-runtime/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[project]
55
name = "aws_sdk_bedrock_runtime"
6-
version = "0.1.0"
6+
version = "0.1.1"
77
description = "aws_sdk_bedrock_runtime client"
88
readme = "README.md"
99
requires-python = ">=3.12"
@@ -19,13 +19,14 @@ classifiers = [
1919
"Programming Language :: Python :: 3",
2020
"Programming Language :: Python :: 3 :: Only",
2121
"Programming Language :: Python :: 3.12",
22-
"Programming Language :: Python :: 3.13"
22+
"Programming Language :: Python :: 3.13",
23+
"Programming Language :: Python :: 3.14"
2324
]
2425

2526
dependencies = [
2627
"smithy_aws_core[eventstream, json]~=0.1.0",
2728
"smithy_core~=0.1.0",
28-
"smithy_http[awscrt]~=0.1.0"
29+
"smithy_http[awscrt]~=0.2.0"
2930
]
3031

3132
[dependency-groups]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Code generated by smithy-python-codegen DO NOT EDIT.
22

3-
__version__: str = "0.1.0"
3+
__version__: str = "0.1.1"

clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/_private/schemas.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,6 +3124,15 @@
31243124
Trait.new(id=ShapeID("smithy.api#enumValue"), value="content_filtered")
31253125
],
31263126
},
3127+
"MODEL_CONTEXT_WINDOW_EXCEEDED": {
3128+
"target": UNIT,
3129+
"traits": [
3130+
Trait.new(
3131+
id=ShapeID("smithy.api#enumValue"),
3132+
value="model_context_window_exceeded",
3133+
)
3134+
],
3135+
},
31273136
},
31283137
)
31293138

clients/aws-sdk-bedrock-runtime/src/aws_sdk_bedrock_runtime/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5694,6 +5694,9 @@ def _consumer(schema: Schema, de: ShapeDeserializer) -> None:
56945694
ShapeID(
56955695
"com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
56965696
): ServiceQuotaExceededException,
5697+
ShapeID(
5698+
"com.amazonaws.bedrockruntime#ServiceUnavailableException"
5699+
): ServiceUnavailableException,
56975700
ShapeID(
56985701
"com.amazonaws.bedrockruntime#ThrottlingException"
56995702
): ThrottlingException,
@@ -10213,6 +10216,7 @@ class StopReason(StrEnum):
1021310216
STOP_SEQUENCE = "stop_sequence"
1021410217
GUARDRAIL_INTERVENED = "guardrail_intervened"
1021510218
CONTENT_FILTERED = "content_filtered"
10219+
MODEL_CONTEXT_WINDOW_EXCEEDED = "model_context_window_exceeded"
1021610220

1021710221

1021810222
def _serialize_guardrail_assessment_map(

0 commit comments

Comments
 (0)