From 31489794406ed4394233046fc11c1670e1fc5578 Mon Sep 17 00:00:00 2001 From: jknapp Date: Sun, 16 Mar 2025 20:01:21 -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 828f2cd..534d9a5 100644 --- a/claude_sonnet-3-7-bedrock.py +++ b/claude_sonnet-3-7-bedrock.py @@ -179,6 +179,7 @@ class Pipeline: print(f"{streaming_response} for {payload}") thinking_start = False for chunk in streaming_response["stream"]: + print(chunk) if "contentBlockDelta" in chunk: delta = chunk["contentBlockDelta"]["delta"] @@ -187,7 +188,7 @@ class Pipeline: if not thinking_start: thinking_start = True yield '
\nThinking…\n' - print(f"Reasoning content: {delta['reasoningContent']}") + #print(f"Reasoning content: {delta['reasoningContent']}") yield delta["reasoningContent"]["text"] # Handle regular response text