From 5c7aa62414fc7210af4c29020dc4179806ff8f0d Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Mon, 15 Jul 2024 16:41:18 -0400 Subject: [PATCH] log stop reason for Claude --- backend/llm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/llm.py b/backend/llm.py index 85d60dc..ebe2213 100644 --- a/backend/llm.py +++ b/backend/llm.py @@ -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()