mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
✨新增加载外部工具集的配置项,修复依赖
This commit is contained in:
@ -33,6 +33,7 @@ class ConfigModel(BaseModel):
|
||||
marshoai_enable_time_prompt: bool = True
|
||||
marshoai_enable_tools: bool = True
|
||||
marshoai_load_builtin_tools: bool = True
|
||||
marshoai_toolset_dir: list = []
|
||||
marshoai_azure_endpoint: str = "https://models.inference.ai.azure.com"
|
||||
marshoai_temperature: float | None = None
|
||||
marshoai_max_tokens: int | None = None
|
||||
@ -117,4 +118,4 @@ if config.marshoai_use_yaml_config:
|
||||
|
||||
config = ConfigModel(**yaml_config)
|
||||
else:
|
||||
logger.info("MarshoAI 支持新的 YAML 配置系统,若要使用,请将 MARSHOAI_USE_YAML_CONFIG 配置项设置为 true。")
|
||||
logger.info("MarshoAI 支持新的 YAML 配置系统,若要使用,请将 MARSHOAI_USE_YAML_CONFIG 配置项设置为 true。")
|
||||
|
Reference in New Issue
Block a user