From cc07b459c0588aadd9688b7bc630d605a645182a Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 16 Mar 2025 20:28:51 -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 a9dd991..e976eeb 100644 --- a/claude_sonnet-3-7-bedrock.py +++ b/claude_sonnet-3-7-bedrock.py @@ -189,7 +189,8 @@ class Pipeline: #thinking_block = delta["contentBlockIndex"] # yield '\n' #print(f"Reasoning content: {delta['reasoningContent']}") - print(delta["contentBlockIndex"]) + if "contentBlockIndex" in delta: + print(delta["contentBlockIndex"]) yield delta["reasoningContent"]["text"] #if "contentBlockStop" in delta and delta["contentBlockStop"]["contentBlockIndex"] == thinking_block: