fix(openai): handle interleaved streaming chunks in tool call (#6312)

Signed-off-by: rabi <ramishra@redhat.com>
This commit is contained in:
Rabi Mishra
2026-01-05 06:43:41 +05:30
committed by GitHub
parent 6339a49c9f
commit 4aa6a176ea
+1 -4
View File
@@ -512,11 +512,8 @@ where
}
}
}
} else {
done = true;
}
if tool_chunk.choices[0].finish_reason == Some("tool_calls".to_string()) {
if tool_chunk.choices[0].finish_reason.is_some() {
done = true;
}
} else {