feat: relay all kinds of requests

This commit is contained in:
JustSong 2023-04-25 10:57:37 +08:00
parent 0198df5962
commit 46dfc6dcdd

View File

@ -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)
}
}