Skip to content

Commit 9692d29

Browse files
committed
🐛 copilot non-streaming header
1 parent 2ad2788 commit 9692d29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/copilot/copilot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func CompletionsRequest(c *gin.Context, req map[string]interface{}, isStream boo
241241
w := c.Writer
242242
// 非流式输出
243243
if !isStream {
244-
utils.SetEventStreamHeaders(c)
244+
utils.SetNotStreamHeaders(c)
245245
flusher, _ := w.(http.Flusher)
246246
body, readErr := io.ReadAll(reader)
247247
if readErr != nil {

0 commit comments

Comments
 (0)