Skip to content

Commit 2016aa5

Browse files
authored
Release: AWS SDK for Python v0.1.1 (#23)
* Update to the latest bedrock-runtime service model * Update aws-sdk-bedrock-runtime to v0.1.1 * Update aws-sdk-python to v0.1.1
1 parent 2054cd2 commit 2016aa5

File tree

9 files changed

+44
-8
lines changed

9 files changed

+44
-8
lines changed

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 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(

clients/aws-sdk-python/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ classifiers = [
1616
"Programming Language :: Python :: 3",
1717
"Programming Language :: Python :: 3 :: Only",
1818
"Programming Language :: Python :: 3.12",
19-
"Programming Language :: Python :: 3.13"
19+
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14"
2021
]
2122
dependencies = []
2223

2324
[project.optional-dependencies]
24-
bedrock_runtime = ["aws_sdk_bedrock_runtime==0.1.0"]
25+
bedrock_runtime = ["aws_sdk_bedrock_runtime==0.1.1"]
2526
all = [
2627
"aws_sdk_python[bedrock_runtime]",
2728
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3-
__version__ = "0.1.0"
3+
__version__ = "0.1.1"
44

55

66
# TODO: Consider adding relative imports for services from the top level namespace?

codegen/aws-models/bedrock-runtime.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,9 @@
730730
{
731731
"target": "com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
732732
},
733+
{
734+
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
735+
},
733736
{
734737
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
735738
},
@@ -6048,6 +6051,12 @@
60486051
"traits": {
60496052
"smithy.api#enumValue": "content_filtered"
60506053
}
6054+
},
6055+
"MODEL_CONTEXT_WINDOW_EXCEEDED": {
6056+
"target": "smithy.api#Unit",
6057+
"traits": {
6058+
"smithy.api#enumValue": "model_context_window_exceeded"
6059+
}
60516060
}
60526061
}
60536062
},

0 commit comments

Comments
 (0)