Skip to content

Commit

Permalink
fixup! fix: nil pointer error from req.Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Aug 1, 2024
1 parent 208f878 commit 9601b44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion runner/-F

This file was deleted.

2 changes: 1 addition & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (w *Worker) handleStreamingResponse(ctx context.Context, resp *LlmGenerateR
if bytes.HasPrefix(line, []byte("data: ")) {
data := bytes.TrimPrefix(line, []byte("data: "))
if string(data) == "[DONE]" {
outputChan <- LlmStreamChunk{Done: true, TokensUsed: totalTokens}
outputChan <- LlmStreamChunk{Chunk: "[DONE]", Done: true, TokensUsed: totalTokens}
return
}

Expand Down

0 comments on commit 9601b44

Please sign in to comment.