diff --git a/channel/channel.py b/channel/channel.py index 385451b2..cd46c565 100644 --- a/channel/channel.py +++ b/channel/channel.py @@ -73,7 +73,7 @@ class Channel(object): Build reply content, using agent if enabled in config """ # Check if agent mode is enabled - use_agent = conf().get("agent", False) + use_agent = conf().get("agent", True) if use_agent: try: diff --git a/channel/web/web_channel.py b/channel/web/web_channel.py index 0b5a6a70..2a5e71b8 100644 --- a/channel/web/web_channel.py +++ b/channel/web/web_channel.py @@ -1108,7 +1108,7 @@ class ConfigHandler: web.header('Content-Type', 'application/json; charset=utf-8') try: local_config = conf() - use_agent = local_config.get("agent", False) + use_agent = local_config.get("agent", True) title = "CowAgent" if use_agent else "AI Assistant" api_bases = {} diff --git a/config.py b/config.py index 1d08bb64..d172fd3d 100644 --- a/config.py +++ b/config.py @@ -366,7 +366,7 @@ def load_config(): logger.info("[INIT] Model: {}".format(config.get("model", "unknown"))) # Agent模式信息 - if config.get("agent", False): + if config.get("agent", True): workspace = config.get("agent_workspace", "~/cow") logger.info("[INIT] Mode: Agent (workspace: {})".format(workspace)) else: