From fa2be65bc698c53ba5c2b27ab1841b99cf16b1db Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 30 May 2026 21:41:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(ChatGPT):=20=E4=BF=AE=E5=A4=8D=20API=20?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/chatgpt/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins.v2/chatgpt/__init__.py b/plugins.v2/chatgpt/__init__.py index 56f0a10..f6ebeaf 100644 --- a/plugins.v2/chatgpt/__init__.py +++ b/plugins.v2/chatgpt/__init__.py @@ -209,14 +209,16 @@ class ChatGPT(_PluginBase): return [ { "path": "/clear_cache", - "method": "GET", - "func": self.clear_cache, + "endpoint": self.clear_cache, + "methods": ["GET"], + "auth": "bear", "summary": "清除识别缓存", }, { "path": "/cache_stats", - "method": "GET", - "func": self.get_cache_stats, + "endpoint": self.get_cache_stats, + "methods": ["GET"], + "auth": "bear", "summary": "获取缓存统计", }, ]