Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Using native clients for bedrock models #2215

Open
Assignees
DouweM
Labels
@akoshel

Description

@akoshel

Description

Hi everyone!
Bedrock supports several model providers, and some of them already offer a native async client.
For example, Anthropic provides AsyncAnthropicBedrock:
https://github.com/anthropics/anthropic-sdk-python/blob/main/src/anthropic/lib/bedrock/_client.py#L273C7-L273C28

I’m concerned that the current anyio workaround could cause issues on scale
https://github.com/pydantic/pydantic-ai/blob/main/pydantic_ai_slim/pydantic_ai/models/bedrock.py#L360

Suggestion
Keep the existing Bedrock implementation unchanged, and add an is_bedrock flag to the Model arguments to determine which client to use.

What do you think?
Thank you

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp