MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / JSON

Function JSON

internal/server/web/proxy/middleware.go:89–96  ·  view source on GitHub ↗
(c *gin.Context, code int, message string)

Source from the content-addressed store, hash-verified

87}
88
89func 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
98type notAuthorizedError interface {
99 Authenticated()

Calls

no outgoing calls

Tested by

no test coverage detected