Skip to content

Commit eaac2fc

Browse files
committed
fix lint
fix lint
1 parent 48bc004 commit eaac2fc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/adapter/chat.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ func handleStreamIter(model string, iter *genai.GenerateContentResponseIterator,
164164
if len(textBuffer) > 0 {
165165
// Send all remaining text at once when done
166166
sendFullText(textBuffer)
167-
textBuffer = ""
168167
}
169168
break
170169
}
@@ -261,7 +260,6 @@ func handleStreamIter(model string, iter *genai.GenerateContentResponseIterator,
261260
// Send any accumulated text all at once
262261
if len(textBuffer) > 0 {
263262
sendFullText(textBuffer)
264-
textBuffer = ""
265263
}
266264

267265
// Send the finish reason

0 commit comments

Comments
 (0)