testing thinking
This commit is contained in:
parent
2eef9c978c
commit
8824b8a591
@ -178,6 +178,7 @@ class Pipeline:
|
||||
streaming_response = self.bedrock_runtime.converse_stream(**payload)
|
||||
thinking_block = None
|
||||
for chunk in streaming_response["stream"]:
|
||||
print(chunk)
|
||||
if "contentBlockDelta" in chunk:
|
||||
delta = chunk["contentBlockDelta"]["delta"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user