(c *gin.Context)
| 374 | } |
| 375 | |
| 376 | func 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 | |
| 388 | func RelayTask(c *gin.Context) { |
| 389 | retryTimes := common.RetryTimes |