mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: correct isStreaming logic when cost is defined
The logic was inverted - when cost is defined in api_req_started, it means the API request has finished (streaming is complete), so should return false, not true.
This commit is contained in:
parent
f37deb4557
commit
4ef796822c
1 changed files with 1 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
|
||||
// Otherwise, check if cost is defined to determine if streaming is complete
|
||||
if ("cost" in info && info.cost !== undefined) {
|
||||
return true // API request has not finished yet.
|
||||
return false // API request has finished.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue