From 9692d2942e3a99bb4c1ed3a698769a9f1e0576e7 Mon Sep 17 00:00:00 2001 From: FENG Date: Sun, 18 Feb 2024 19:52:36 +0800 Subject: [PATCH] :bug: copilot non-streaming header --- api/copilot/copilot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/copilot/copilot.go b/api/copilot/copilot.go index 5776dcc..f338dee 100644 --- a/api/copilot/copilot.go +++ b/api/copilot/copilot.go @@ -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 {