(c *gin.Context, code int, message string)
| 87 | } |
| 88 | |
| 89 | func JSON(c *gin.Context, code int, message string) { |
| 90 | c.JSON(code, &goopenai.ErrorResponse{ |
| 91 | Error: &goopenai.APIError{ |
| 92 | Message: message, |
| 93 | Code: strconv.Itoa(code), |
| 94 | }, |
| 95 | }) |
| 96 | } |
| 97 | |
| 98 | type notAuthorizedError interface { |
| 99 | Authenticated() |
no outgoing calls
no test coverage detected