log stop reason for Claude

This commit is contained in:
Abi Raja 2024-07-15 16:41:18 -04:00
parent 1a26e325be
commit 5c7aa62414

View File

@ -133,6 +133,7 @@ async def stream_claude_response(
# Return final message
response = await stream.get_final_message()
print("[STOP REASON] " + str(response.stop_reason))
# Close the Anthropic client
await client.close()