up
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user