fix ChatGPT

This commit is contained in:
jxxghp
2023-11-03 12:36:24 +08:00
parent 8cf0afbeda
commit c135058480
3 changed files with 10 additions and 4 deletions

View File

@@ -164,7 +164,7 @@
"ChatGPT": {
"name": "ChatGPT",
"description": "消息交互支持与ChatGPT对话。",
"version": "1.0",
"version": "1.1",
"icon": "chatgpt.png",
"color": "#74AA9C",
"author": "jxxghp",

View File

@@ -18,7 +18,7 @@ class ChatGPT(_PluginBase):
# 主题色
plugin_color = "#74AA9C"
# 插件版本
plugin_version = "1.0"
plugin_version = "1.1"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -223,6 +223,13 @@ class ChatGPT(_PluginBase):
'episode': response.get("episode")
}
)
else:
eventmanager.send_event(
EventType.NameRecognizeResult,
{
'title': title
}
)
def stop_service(self):
"""

View File

@@ -54,8 +54,7 @@ class MediaServerRefresh(_PluginBase):
def get_api(self) -> List[Dict[str, Any]]:
pass
@staticmethod
def get_form() -> Tuple[List[dict], Dict[str, Any]]:
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
"""
拼装插件配置页面需要返回两块数据1、页面配置2、数据结构
"""