新增加载外部工具集的配置项,修复依赖

This commit is contained in:
2024-11-27 13:38:11 +08:00
parent c7e55cc803
commit 075a529aa1
6 changed files with 31 additions and 18 deletions

View File

@ -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。")