diff --git a/router/relay-router.go b/router/relay-router.go index 99027a2263..19f5e55e71 100644 --- a/router/relay-router.go +++ b/router/relay-router.go @@ -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) } }