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

feat(team): propagate preferred_language into TeamAgentSpec

alan_cheng90117a8a93e1
diff --git a/jiuwenclaw/agentserver/team/config_loader.py b/jiuwenclaw/agentserver/team/config_loader.py
index 0f92652a67..b395e7ba23 100644
--- a/jiuwenclaw/agentserver/team/config_loader.py
+++ b/jiuwenclaw/agentserver/team/config_loader.py
@@ -262,6 +262,7 @@ def load_team_spec_dict(session_id: str) -> dict[str, Any]:
spec_dict["spawn_mode"] = team_raw.get("spawn_mode", "inprocess")
spec_dict["leader"] = _build_leader_spec(team_raw)
spec_dict["agents"] = agents
+ spec_dict["language"] = str(config_base.get("preferred_language", "zh")).strip().lower()
workspace_spec = _build_workspace_spec(team_raw)
if workspace_spec is not None: