We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7361dbb commit 3ca1883Copy full SHA for 3ca1883
pydantic_ai_slim/pydantic_ai/models/anthropic.py
@@ -543,6 +543,8 @@ def _map_usage(message: BetaMessage | BetaRawMessageStartEvent | BetaRawMessageD
543
response_usage = message.message.usage
544
elif isinstance(message, BetaRawMessageDeltaEvent):
545
response_usage = message.usage
546
+ else:
547
+ assert_never(message)
548
549
# Store all integer-typed usage values in the details, except 'output_tokens' which is represented exactly by
550
# `response_tokens`
0 commit comments