mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-24 01:34:27 +01:00
feat: code clean
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
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