mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix(openai): handle interleaved streaming chunks in tool call (#6312)
Signed-off-by: rabi <ramishra@redhat.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user