From 6f51d5577c4dcca6c4d5523ac2ede3f9bf72b58f Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 16 Mar 2025 21:01:15 -0700 Subject: [PATCH] testing thinking --- claude_sonnet-3-7-bedrock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claude_sonnet-3-7-bedrock.py b/claude_sonnet-3-7-bedrock.py index d1761a8..13f70d5 100644 --- a/claude_sonnet-3-7-bedrock.py +++ b/claude_sonnet-3-7-bedrock.py @@ -189,7 +189,7 @@ class Pipeline: yield '\n' yield delta["reasoningContent"]["text"] - if "contentBlockStop" in delta and delta["contentBlockStop"]["contentBlockIndex"] == thinking_block: + if "contentBlockStop" in chunk and chunk["contentBlockStop"]["contentBlockIndex"] == thinking_block: yield '\n\n' # Handle regular response text