Skip to content

Commit

Permalink
fix: godcmd plugin is disabled (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 authored Oct 4, 2024
1 parent 821b378 commit 36a0fdd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ services:
# 更多配置请查看 config.py
ports:
- "7860:7860"

# 挂载配置和插件目录,防止删除容器后丢失数据
volumes:
- ../config.json:/app/config.json # 注意需要先复制config-template.json为config.json
- ../plugins:/app/plugins
1 change: 1 addition & 0 deletions plugins/jina_sum/jina_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
name="JinaSum",
desire_priority=10,
hidden=False,
enabled=False,
desc="Sum url link content with jina reader and llm",
version="0.0.1",
author="hanfangyuan",
Expand Down
1 change: 1 addition & 0 deletions plugins/linkai/linkai.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
name="linkai",
desc="A plugin that supports knowledge base and midjourney drawing.",
version="0.1.0",
enabled=False,
author="https://link-ai.tech",
desire_priority=99
)
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def wrapper(plugincls):
plugincls.version = kwargs.get("version") if kwargs.get("version") != None else "1.0"
plugincls.namecn = kwargs.get("namecn") if kwargs.get("namecn") != None else name
plugincls.hidden = kwargs.get("hidden") if kwargs.get("hidden") != None else False
plugincls.enabled = kwargs.get("enabled") if kwargs.get("enabled") != None else False
plugincls.enabled = kwargs.get("enabled") if kwargs.get("enabled") != None else True
if self.current_plugin_path == None:
raise Exception("Plugin path not set")
self.plugins[name.upper()] = plugincls
Expand Down

0 comments on commit 36a0fdd

Please sign in to comment.