mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
fix: Ensure all tool calls are complete before submitting responses (#689)
This commit is contained in:
parent
27ba28ef76
commit
34b81abd9c
2 changed files with 312 additions and 7 deletions
|
|
@ -530,7 +530,10 @@ export const useGeminiStream = (
|
|||
},
|
||||
);
|
||||
|
||||
if (completedAndReadyToSubmitTools.length > 0) {
|
||||
if (
|
||||
completedAndReadyToSubmitTools.length > 0 &&
|
||||
completedAndReadyToSubmitTools.length === toolCalls.length
|
||||
) {
|
||||
const responsesToSend: PartListUnion[] =
|
||||
completedAndReadyToSubmitTools.map(
|
||||
(toolCall) => toolCall.response.responseParts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue