[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: delete RelayPanicRecover
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Jan 12, 2024
1 parent 6757166 commit 075b1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/relay-router.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func SetRelayRouter(router *gin.Engine) {
modelsRouter.GET("/:model", controller.RetrieveModel)
}
relayV1Router := router.Group("/v1")
relayV1Router.Use(middleware.RelayPanicRecover(), middleware.TokenAuth(), middleware.Distribute())
relayV1Router.Use(middleware.TokenAuth(), middleware.Distribute())
{
relayV1Router.POST("/completions", controller.Relay)
relayV1Router.POST("/chat/completions", controller.Relay)
Expand Down

0 comments on commit 075b1ac

Please sign in to comment.