Anthropic streaming returns in single chunk when agent result_type
is specified
#823
Labels
bug
Something isn't working
result_type
is specified
#823
I just tried Anthropic streaming (pydantic-ai v0.0.20) and the stream comes in as one big chunk, not as an actual stream (although there is no longer an error about anthropic streaming not being supported). I can confirm the code is correct since a simple switch to "openai:gpt-4o" model creates an actual stream.
I discovered that this only happens if I specify the
result_type
(streaming works fine without):The text was updated successfully, but these errors were encountered: