Skip to content

Commit

Permalink
refactor(SSEProcessor): set success flag on valid completion content
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Oct 23, 2024
1 parent 3ef2312 commit 9893e7a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ open class CustomSSEProcessor(private val project: Project) {

val completion = result.choices[0].message
if (completion != null && completion.content != null) {
hasSuccessRequest = true

output += completion.content
trySend(completion.content)
}
Expand Down

0 comments on commit 9893e7a

Please sign in to comment.