修改错误提示

This commit is contained in:
CaIon
2023-12-01 01:29:13 +08:00
parent cddcf9caaa
commit 6e744bd1a3
6 changed files with 14 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ func GetUsage(c *gin.Context) {
if err != nil {
openAIError := OpenAIError{
Message: err.Error(),
Type: "one_api_error",
Type: "new_api_error",
}
c.JSON(200, gin.H{
"error": openAIError,