assistant2: Consider tool use as part of the "streaming" state (#26723)
This PR updates the `Thread::is_streaming` method so that it includes tool use in the "streaming" state. This will prevent the streaming indicator from disappearing when we're doing tool use. Release Notes: - N/A
This commit is contained in:
parent
b5a7fb13c3
commit
a0be6c8cb2
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ impl Thread {
|
|||
}
|
||||
|
||||
pub fn is_streaming(&self) -> bool {
|
||||
!self.pending_completions.is_empty()
|
||||
!self.pending_completions.is_empty() || !self.all_tools_finished()
|
||||
}
|
||||
|
||||
pub fn tools(&self) -> &Arc<ToolWorkingSet> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue