Skip to content
Open
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
3 changes: 2 additions & 1 deletion src/anthropic/lib/bedrock/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def get_auth_headers(
# The connection header may be stripped by a proxy somewhere, so the receiver
# of this message may not see this header, so we remove it from the set of headers
# that are signed.
# Note: HTTP/2 requests don't have a Connection header, so we safely remove it only if present.
headers = headers.copy()
del headers["connection"]
headers.pop("connection", None)

request = AWSRequest(method=method.upper(), url=url, headers=headers, data=data)
credentials = session.get_credentials()
Expand Down
2 changes: 2 additions & 0 deletions src/anthropic/lib/tools/_beta_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def set_messages_params(
if callable(params):
params = params(self._params)
self._params = params
self._cached_tool_call_response = None
self._messages_modified = True

def append_messages(self, *messages: BetaMessageParam | BetaMessage) -> None:
"""Add one or more messages to the conversation history.
Expand Down