mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-11 00:23:42 +08:00
修改错误提示
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user