fix(ChatGPT): 修复 API 注册格式

This commit is contained in:
jxxghp
2026-05-30 21:41:57 +08:00
parent 08a32a009d
commit fa2be65bc6

View File

@@ -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": "获取缓存统计",
},
]