MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / WrapperOpenAIError

Function WrapperOpenAIError

common/openai_tools.go:120–127  ·  view source on GitHub ↗
(err error, code string)

Source from the content-addressed store, hash-verified

118}
119
120func WrapperOpenAIError(err error, code string) *OpenAIError {
121 return &OpenAIError{
122 Error: Error{
123 Message: err.Error(),
124 Code: code,
125 },
126 }
127}
128
129func ReturnOpenAIError(c *gin.Context, err error, code string, statusCode int) {
130 c.JSON(statusCode, OpenAIError{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected