Skip to content
Snippets Groups Projects
Unverified Commit 86c937fa authored by Thomas Rothenbächer's avatar Thomas Rothenbächer Committed by GitHub
Browse files

only modify delta if 'Answer:' was actually detected (#17901)

parent c2bb6ae3
No related branches found
No related tags found
No related merge requests found
......@@ -691,8 +691,8 @@ class ReActAgentWorker(BaseAgentWorker):
start_idx + len("Answer:") :
].strip()
# set delta to the content, minus the "Answer: "
latest_chunk.delta = latest_chunk.message.content
# set delta to the content, minus the "Answer: "
latest_chunk.delta = latest_chunk.message.content
# add back the chunks that were missed
response_stream = self._add_back_chunk_to_stream(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment