优化卡顿&bug

This commit is contained in:
Sakurasan
2023-04-28 03:26:02 +08:00
parent 33034a9db0
commit 8d2ad4e993
2 changed files with 55 additions and 40 deletions

View File

@@ -59,7 +59,8 @@ func main() {
// 初始化用户
r.POST("/1/users/init", router.Handleinit)
r.Any("/v1/*proxypath", router.HandleProy)
// r.Any("/v1/*proxypath", router.HandleProy)
r.Match([]string{http.MethodGet, http.MethodPost}, "/v1/*proxypath", router.HandleProy)
// r.POST("/v1/chat/completions", router.HandleProy)
// r.GET("/v1/models", router.HandleProy)