MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / RelayNotFound

Function RelayNotFound

controller/relay.go:376–386  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

374}
375
376func RelayNotFound(c *gin.Context) {
377 err := dto.OpenAIError{
378 Message: fmt.Sprintf("Invalid URL (%s %s)", c.Request.Method, c.Request.URL.Path),
379 Type: "invalid_request_error",
380 Param: "",
381 Code: "",
382 }
383 c.JSON(http.StatusNotFound, gin.H{
384 "error": err,
385 })
386}
387
388func RelayTask(c *gin.Context) {
389 retryTimes := common.RetryTimes

Callers 1

SetWebRouterFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected