count artifact handoff once per response batch

This commit is contained in:
pewdiepie-archdaemon
2026-09-18 16:10:02 +00:00
parent 60de3b951f
commit a453b71651
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -5471,6 +5471,7 @@ async def stream_preview(*, endpoint_url, model, messages, headers, turn_contrac
if (
repeated_handoff_target
and artifact_body_handoff_attempts < 2
and not artifact_body_handoff_target
):
artifact_body_handoff_attempts += 1
artifact_body_handoff_target = repeated_handoff_target