Skip to content

Commit

Permalink
🐛 copilot non-streaming header
Browse files Browse the repository at this point in the history
  • Loading branch information
dalefengs committed Feb 18, 2024
1 parent 2ad2788 commit 9692d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/copilot/copilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func CompletionsRequest(c *gin.Context, req map[string]interface{}, isStream boo
w := c.Writer
// 非流式输出
if !isStream {
utils.SetEventStreamHeaders(c)
utils.SetNotStreamHeaders(c)
flusher, _ := w.(http.Flusher)
body, readErr := io.ReadAll(reader)
if readErr != nil {
Expand Down

0 comments on commit 9692d29

Please sign in to comment.