Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: default config.source to yaml and stamp enterprise in docker

zhongqinghua200b3e832a1bd
diff --git a/docker/update_conf.py b/docker/update_conf.py
index e51fd17cb4..d080ceb967 100644
--- a/docker/update_conf.py
+++ b/docker/update_conf.py
@@ -83,6 +83,7 @@ def main() -> int:
# ---- 企业版域修改(与原 yq 版等价;宏改为 ${ENV:-default} 插值占位)----
setpath(data, "gateway.agent_client.type", "jiuwen")
setpath(data, "gateway.edition", "enterprise")
+ setpath(data, "config.source", "enterprise")
setpath(data, "gateway.session_map_scope", "${GATEWAY_SESSION_MAP_SCOPE:-per_chat_bot}")
setpath(data, "react.max_iterations", "${AGENT_SERVER_REACT_MAX_ITER:-100}")
setpath(data, "react.evolution.enabled", False)
diff --git a/jiuwenswarm/resources/config.yaml b/jiuwenswarm/resources/config.yaml
index db4b9086ea..570919585f 100644
--- a/jiuwenswarm/resources/config.yaml
+++ b/jiuwenswarm/resources/config.yaml
@@ -1,10 +1,10 @@
# 配置架构版本(用户 override 首次写入 version 时从本模板拷贝;迁移脚本可比对)
version: 1.0
-# Agent 配置来源:null 按版本选择;yaml 仅本地配置;enterprise 合并 Gateway DB。
+# Agent 配置来源:yaml 仅本地配置;enterprise 合并 Gateway DB。
# 环境变量 JIUWENSWARM_CONFIG_SOURCE 优先。进程级默认仍读取 YAML。
config:
- source: null
+ source: yaml
# 前端显示语言:zh(中文)/ en(英文),与 Web 界面语言切换同步
preferred_language: zh