From 64b2254f0997e239076e7183297cb58a6e5f153e Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 16 Mar 2025 21:19:33 -0700 Subject: [PATCH] testing thinking --- claude_sonnet-3-7-bedrock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/claude_sonnet-3-7-bedrock.py b/claude_sonnet-3-7-bedrock.py index 07eb090..aa38517 100644 --- a/claude_sonnet-3-7-bedrock.py +++ b/claude_sonnet-3-7-bedrock.py @@ -188,7 +188,8 @@ class Pipeline: yield '\n' yield delta["reasoningContent"]["text"] - if "contentBlockStop" in chunk and chunk["contentBlockStop"]["contentBlockIndex"] == thinking_block: + if "contentBlockStop" in chunk: # and chunk["contentBlockStop"]["contentBlockIndex"] == thinking_block: + print("Thinking End") yield '\n\n' # Handle regular response text