fix(ChatGPT): 删除重复的缓存按钮

This commit is contained in:
jxxghp
2026-05-30 21:35:32 +08:00
parent 7722ce3406
commit aa502fc5fc

View File

@@ -418,74 +418,6 @@ class ChatGPT(_PluginBase):
}
],
},
{
"component": "VRow",
"content": [
{
"component": "VCol",
"props": {"cols": 12},
"content": [
{
"component": "VAlert",
"props": {
"type": "info",
"variant": "tonal",
"text": "识别缓存可避免相同标题重复调用 LLM API点击按钮可清除已缓存的识别结果。",
},
}
],
}
],
},
{
"component": "VRow",
"content": [
{
"component": "VCol",
"props": {"cols": 12, "md": 6},
"content": [
{
"component": "VBtn",
"props": {
"color": "warning",
"block": True,
"onClick": {
"action": "fetch",
"url": "/plugin/ChatGPT/clear_cache",
"method": "GET",
"then": {
"action": "refresh",
},
},
},
"text": "清除识别缓存",
}
],
},
{
"component": "VCol",
"props": {"cols": 12, "md": 6},
"content": [
{
"component": "VTextField",
"props": {
"model": "cache_count",
"label": "当前缓存数量",
"readonly": True,
"hint": "点击刷新按钮更新",
"persistent-hint": True,
"append-inner-icon": "mdi-refresh",
"onClick:append-inner": {
"action": "fetch",
"url": "/plugin/ChatGPT/cache_stats",
"method": "GET",
},
},
}
],
}
],
},
],
}
], {