chore: update error code

This commit is contained in:
JustSong
2023-09-17 11:30:20 +08:00
parent 39ae8075e4
commit 959bcdef88
2 changed files with 2 additions and 2 deletions

View File

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