Skip to content

Commit

Permalink
change code to string
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Jan 18, 2024
1 parent c5b2c20 commit 1c8b93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/web/proxy/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func JSON(c *gin.Context, code int, message string) {
c.JSON(code, &goopenai.ErrorResponse{
Error: &goopenai.APIError{
Message: message,
Code: code,
Code: strconv.Itoa(code),
},
})
}
Expand Down

0 comments on commit 1c8b93f

Please sign in to comment.