Merge branch 'alpha' into feature/simple_stripe

This commit is contained in:
wzxjohn authored and GitHub committed 2025-07-16 10:39:11 +08:00
commit 252aff1203
170 files changed
+6242 -3319

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ func SetApiRouter(router *gin.Engine) {
channelRoute.POST("/fetch_models", controller.FetchModels)
channelRoute.POST("/batch/tag", controller.BatchSetChannelTag)
channelRoute.GET("/tag/models", controller.GetTagModels)
channelRoute.POST("/copy/:id", controller.CopyChannel)
}
tokenRoute := apiRouter.Group("/token")
tokenRoute.Use(middleware.UserAuth())
+1 -1
View File
@@ -20,7 +20,7 @@ func SetRelayRouter(router *gin.Engine) {
modelsRouter.GET("/:model", controller.RetrieveModel)
}
playgroundRouter := router.Group("/pg")
playgroundRouter.Use(middleware.UserAuth())
playgroundRouter.Use(middleware.UserAuth(), middleware.Distribute())
{
playgroundRouter.POST("/chat/completions", controller.Playground)
}