We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed93aca commit 4afdbdcCopy full SHA for 4afdbdc
1 file changed
integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/utils.py
@@ -671,7 +671,7 @@ def _convert_chunks_to_messages(chunks: list[StreamingChunk]) -> list[ChatMessag
671
# reasoning signatures are ignored in _convert_streaming_chunks_to_chat_message
672
# so we need to process them separately
673
for chunk in reversed(chunks):
674
- if chunk.reasoning and chunk.reasoning.extra and "signature" in chunk.reasoning.extra:
+ if reply.reasoning and chunk.reasoning and chunk.reasoning.extra and "signature" in chunk.reasoning.extra:
675
reply.reasoning.extra["signature"] = chunk.reasoning.extra["signature"]
676
break
677
0 commit comments