mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 01:46:07 +00:00
perf: 初始化config对象时支持传递dict作为模板
This commit is contained in:
@@ -10,6 +10,9 @@ class ConfigFile(metaclass=abc.ABCMeta):
|
||||
template_file_name: str = None
|
||||
"""模板文件名"""
|
||||
|
||||
template_data: dict = None
|
||||
"""模板数据"""
|
||||
|
||||
@abc.abstractmethod
|
||||
def exists(self) -> bool:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user