File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ def handle_content_block_delta(
172172 )
173173
174174 elif redacted_content := delta_content ["reasoningContent" ].get ("redactedContent" ):
175- state .setdefault ("redactedContent" , b"" )
176- state ["redactedContent" ] += redacted_content
175+ state ["redactedContent" ] = state .get ("redactedContent" , b"" ) + redacted_content
177176 typed_event = RedactedContentStreamEvent (
178177 redacted_content = redacted_content , delta = delta_content , reasoning = True
179178 )
@@ -302,7 +301,6 @@ async def process_stream(chunks: AsyncIterable[StreamEvent]) -> AsyncGenerator[T
302301 "current_tool_use" : {},
303302 "reasoningText" : "" ,
304303 "citationsContent" : [],
305- "redactedContent" : b"" ,
306304 }
307305 state ["content" ] = state ["message" ]["content" ]
308306
You can’t perform that action at this time.
0 commit comments