mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-20 07:44:19 +01:00
13 lines
201 B
Go
13 lines
201 B
Go
package apis
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func SendError(c *gin.Context, err error) {
|
|
c.JSON(500, ApiResponse{
|
|
Error: ErrorDescription{
|
|
Code: "500",
|
|
Message: err.Error(),
|
|
},
|
|
})
|
|
}
|