🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -34,7 +34,7 @@ class BaseAction(ABC):
|
|||||||
chat_stream=None,
|
chat_stream=None,
|
||||||
log_prefix: str = "",
|
log_prefix: str = "",
|
||||||
shutting_down: bool = False,
|
shutting_down: bool = False,
|
||||||
plugin_config: dict = {},
|
plugin_config: dict = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
"""初始化Action组件
|
"""初始化Action组件
|
||||||
@@ -53,6 +53,8 @@ class BaseAction(ABC):
|
|||||||
plugin_config: 插件配置字典
|
plugin_config: 插件配置字典
|
||||||
**kwargs: 其他参数
|
**kwargs: 其他参数
|
||||||
"""
|
"""
|
||||||
|
if plugin_config is None:
|
||||||
|
plugin_config = {}
|
||||||
self.action_data = action_data
|
self.action_data = action_data
|
||||||
self.reasoning = reasoning
|
self.reasoning = reasoning
|
||||||
self.cycle_timers = cycle_timers
|
self.cycle_timers = cycle_timers
|
||||||
|
|||||||
Reference in New Issue
Block a user