Skip to content

Commit

Permalink
feat: relay all kinds of requests
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Apr 25, 2023
1 parent 0198df5 commit 46dfc6d
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 @@ -10,6 +10,6 @@ func SetRelayRouter(router *gin.Engine) {
relayRouter := router.Group("/v1")
relayRouter.Use(middleware.GlobalAPIRateLimit(), middleware.TokenAuth(), middleware.Distribute())
{
relayRouter.POST("/chat/completions", controller.Relay)
relayRouter.Any("/*path", controller.Relay)
}
}

0 comments on commit 46dfc6d

Please sign in to comment.