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

Structured Output Streaming Returning as Single Chunk(Bedrock Anthropic) #1889

Open
@bkwon94

Description

@bkwon94

Initial Checks

Description

Structured streaming doesn't work with Claude models when using via Bedrock.

I tried using stream whales example as-is and it seems to work fine with the openai gpt model used in that example.
When using a Claude model, the streaming does not work and data is sent as one chunk.

Can confirm if I change output type to just a string, streaming works fine but in my use case I need structured output.

I have seen similar issues when using Claude models directly:

Example Code

Python, Pydantic AI & LLM client version

Python 3.12PydanticAI 0.2.12

Metadata

Metadata

Assignees

No one assigned

    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