This commit is contained in:
Sakurasan committed 2024-11-18 03:27:54 +08:00
1 parent 59063b40e1
commit 39a81688a9
1 file changed
+1 -3
+1 -3
View File
@@ -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)