mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-21 00:04:24 +01:00
feat: remove pkg dir
This commit is contained in:
14
util/response_err.go
Normal file
14
util/response_err.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func SendError(c *gin.Context, err error) {
|
||||
c.JSON(500, ApiResponse{
|
||||
Error: ErrorDescription{
|
||||
Code: "500",
|
||||
Message: err.Error(),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user