Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakurasan committed Nov 17, 2024
1 parent 39a8168 commit 5181ba4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/openai/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5181ba4

Please sign in to comment.