From 5181ba455258115869aab8b4598799735172192f Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Mon, 18 Nov 2024 03:52:34 +0800 Subject: [PATCH] up --- pkg/openai/chat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/openai/chat.go b/pkg/openai/chat.go index b8a0ef9..78f0f10 100644 --- a/pkg/openai/chat.go +++ b/pkg/openai/chat.go @@ -346,6 +346,9 @@ func ChatProxy(c *gin.Context, chatReq *ChatCompletionRequest) { } } + for k, v := range resp.Header { + c.Writer.Header().Set(k, v[0]) + } c.JSON(http.StatusOK, opiResp) }