From ea9d9d532a6f9b7047aaa2875b455303e9e1d582 Mon Sep 17 00:00:00 2001 From: Sakurasan <1173092237@qq.com> Date: Fri, 28 Apr 2023 14:49:04 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 379586cd1bc6b676473c6d0058e7dd0a9936e623 Author: Sakurasan <1173092237@qq.com> Date: Fri Apr 28 14:46:46 2023 +0800 up commit 5200171dc08a57c29d586d30426532458dbe2508 Author: Sakurasan <1173092237@qq.com> Date: Fri Apr 28 03:05:23 2023 +0800 优化代码 commit d2f07a824e9bb990b995900e8dce84c155c11032 Author: Sakurasan <1173092237@qq.com> Date: Thu Apr 27 22:23:22 2023 +0800 更新错误提示 commit 8a2ebb677879d441835686dc254fdf4d4fe9c557 Author: Sakurasan <1173092237@qq.com> Date: Thu Apr 27 17:27:43 2023 +0800 up commit a202dfadcacb008bba0cd8064d449230e393dbd7 Author: Sakurasan <1173092237@qq.com> Date: Thu Apr 27 02:31:35 2023 +0800 优化代码 commit a100d75c008ac208ea97982d0687503d64b72489 Author: Sakurasan <1173092237@qq.com> Date: Wed Apr 26 03:56:29 2023 +0800 fix bug commit a34e579aa8213aa7d2cf38c26c89d5ea6734a9b6 Author: Sakurasan <1173092237@qq.com> Date: Wed Apr 26 03:18:49 2023 +0800 fix db type commit 3dae04afcdc5f43a3b5e44fe8c4004594e91cec9 Author: Sakurasan <1173092237@qq.com> Date: Wed Apr 26 03:03:43 2023 +0800 fix null data commit 56b56c703d6ba2dc2b89f5b9ed65698e87e00111 Author: Sakurasan <1173092237@qq.com> Date: Tue Apr 25 22:27:19 2023 +0800 up commit 97a13a5f7978cdd870b602d2f7480998f84d1a74 Author: Sakurasan <1173092237@qq.com> Date: Tue Apr 25 21:30:18 2023 +0800 usage commit 5ce546672319c0aa9f2475ab2523ac25ad89126a Author: Sakurasan <1173092237@qq.com> Date: Mon Apr 24 22:44:03 2023 +0800 usage commit 365bc374873ccf5db2ac73d83bfbdb64300f001e Author: Sakurasan <1173092237@qq.com> Date: Sat Apr 22 22:40:47 2023 +0800 up commit 1cd06ea1dfebbc215da3c05d3a9da8bd47b81bc2 Author: Sakurasan <1173092237@qq.com> Date: Wed Apr 19 22:50:39 2023 +0800 up commit 499edbb0fd74a71c40df2e7da4498a195cfa7fac Author: Sakurasan <1173092237@qq.com> Date: Wed Apr 19 02:06:09 2023 +0800 add Completion commit 11dbf4376efb270914ab31233f01d0eb76d3b731 Author: Sakurasan <1173092237@qq.com> Date: Tue Apr 18 22:46:11 2023 +0800 up commit eb22de912a54873b3f80ed2225e596d87851ce48 Author: Sakurasan <1173092237@qq.com> Date: Mon Apr 17 22:48:37 2023 +0800 add usage --- opencat.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opencat.go b/opencat.go index 0ffebbe..4cb2d53 100644 --- a/opencat.go +++ b/opencat.go @@ -59,8 +59,7 @@ func main() { // 初始化用户 r.POST("/1/users/init", router.Handleinit) - // r.Any("/v1/*proxypath", router.HandleProy) - r.Match([]string{http.MethodGet, http.MethodPost}, "/v1/*proxypath", router.HandleProy) + r.Any("/v1/*proxypath", router.HandleProy) // r.POST("/v1/chat/completions", router.HandleProy) // r.GET("/v1/models", router.HandleProy)