diff --git a/astrbot/core/star/star_tools.py b/astrbot/core/star/star_tools.py index 777f7152..405ccc63 100644 --- a/astrbot/core/star/star_tools.py +++ b/astrbot/core/star/star_tools.py @@ -147,7 +147,7 @@ class StarTools: cls._context.unregister_llm_tool(name) @classmethod - def get_data_dir(cls, plugin_name: Optional[str]) -> Path: + def get_data_dir(cls, plugin_name: Optional[str] = None) -> Path: """ 返回插件数据目录的绝对路径。