Skip to content

Commit 58ae94c

Browse files
committed
Remove debug logging from chatStream handler
1 parent 95b1bba commit 58ae94c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

api/chat_main_handler.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ func (h *ChatHandler) chatStream(w http.ResponseWriter, chatSession sqlc_queries
561561
}
562562
for {
563563
rawLine, err := stream.RecvRaw()
564-
log.Printf("%+v", string(rawLine))
565564
if err != nil {
566565
if errors.Is(err, io.EOF) {
567566
// send the last message
@@ -594,7 +593,6 @@ func (h *ChatHandler) chatStream(w http.ResponseWriter, chatSession sqlc_queries
594593
continue
595594
}
596595
textIdx := response.Choices[0].Index
597-
log.Printf("%+v", response)
598596
delta := response.Choices[0].Delta
599597
textBuffer.appendByIndex(textIdx, delta.Content)
600598
if len(delta.ReasoningContent) > 0 {

0 commit comments

Comments
 (0)