Skip to content

Commit

Permalink
fix error retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Mar 23, 2024
1 parent d4b0e38 commit c792ec2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/server/web/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1176,11 +1176,12 @@ func getChatCompletionHandler(prod, private bool, client http.Client, log *zap.L
if err != nil {
stats.Incr("bricksllm.proxy.get_chat_completion_handler.json_marshal_error", nil, 1)
logError(log, "error when marshalling bytes for openai streaming chat completion error response", prod, cid, err)
return true
return false
}

c.SSEvent("", string(bytes))
return true
c.SSEvent("", " [DONE]")
return false
}

streamingResponse = append(streamingResponse, raw)
Expand Down

0 comments on commit c792ec2

Please sign in to comment.