Skip to content

0.25.3 breaking get_auth_headers in src/anthropic/lib/bedrock/_auth.py due to bad parameter name #459

Description

@amiralik16

session = _get_session(
region_name=region,
aws_access_key_id=aws_access_key,
aws_secret_access_key=aws_secret_key,
aws_session_token=aws_session_token,
)
passes region_name to _get_session whereas _get_session expects region. Leading to a :

.../lib/python3.10/site-packages/anthropic/lib/bedrock/_auth.py", line 44, in get_auth_headers
    session = _get_session(
TypeError: _get_session() got an unexpected keyword argument 'region_name'

The fix should be a one line change to pass the correct argument name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions