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.is_some() {
|
||||||
if tool_chunk.choices[0].finish_reason == Some("tool_calls".to_string()) {
|
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user