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 59063b4 commit 39a8168
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/openai/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,7 @@ 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)
}
usagelog.CompletionCount = tokenizer.NumTokensFromStr(result, chatReq.Model)
Expand Down

0 comments on commit 39a8168

Please sign in to comment.