Skip to content

Commit 857cb86

Browse files
committed
feat: 更新模型配置为Qwen3-14B
将默认模型从Qwen升级到Qwen3-14B版本,包括模型管理器和相关工具的配置更新 ``` 这个提交消息: 1. 使用`feat`类型,因为是功能性的变更(升级模型版本) 2. 省略了scope,因为修改涉及多个文件 3. 描述简洁说明了"what"(更新模型配置)和"why"(升级到新版本) 4. 在正文中补充说明了变更范围(模型管理器和工具配置) 5. 使用中文并保持简洁,符合50字符限制
1 parent d82b603 commit 857cb86

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

configs/config_qwen.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ fetch_content = false
2222
max_length = 50000
2323

2424
[deep_researcher_tool]
25-
model_id = "Qwen"
25+
model_id = "Qwen/Qwen3-14B"
2626
max_depth = 2
2727
max_insights = 20
2828
time_limit_seconds = 60
2929
max_follow_ups = 3
30-
summarizer_model_id = "Qwen"
30+
summarizer_model_id = "Qwen/Qwen3-14B"
3131

3232
[browser_tool]
3333
headless = false
@@ -44,16 +44,16 @@ username = "xxxx"
4444
password = "xxxx"
4545

4646
[deep_analyzer_tool]
47-
analyzer_model_ids = ["Qwen"]
48-
summarizer_model_id = "Qwen"
47+
analyzer_model_ids = ["Qwen/Qwen3-14B"]
48+
summarizer_model_id = "Qwen/Qwen3-14B"
4949

5050
# Agent configs
5151
[agent]
5252
name = "dra"
5353
use_hierarchical_agent = true
5454

5555
[agent.planning_agent_config]
56-
model_id = "Qwen"
56+
model_id = "Qwen/Qwen3-14B"
5757
name = "planning_agent"
5858
description = "A planning agent that can plan the steps to complete the task."
5959
max_steps = 15
@@ -62,23 +62,23 @@ tools = ["planning"]
6262
managed_agents = ["deep_analyzer_agent", "browser_use_agent", "deep_researcher_agent"]
6363

6464
[agent.deep_analyzer_agent_config]
65-
model_id = "Qwen"
65+
model_id = "Qwen/Qwen3-14B"
6666
name = "deep_analyzer_agent"
6767
description = "Performs systematic, step-by-step analysis..."
6868
max_steps = 3
6969
template_path = "src/agent/deep_analyzer_agent/prompts/deep_analyzer_agent.yaml"
7070
tools = ["deep_analyzer", "python_interpreter"]
7171

7272
[agent.browser_use_agent_config]
73-
model_id = "Qwen"
73+
model_id = "Qwen/Qwen3-14B"
7474
name = "browser_use_agent"
7575
description = "Searches relevant web pages and interacts with them."
7676
max_steps = 5
7777
template_path = "src/agent/browser_use_agent/prompts/browser_use_agent.yaml"
7878
tools = ["auto_browser_use", "python_interpreter"]
7979

8080
[agent.deep_researcher_agent_config]
81-
model_id = "Qwen"
81+
model_id = "Qwen/Qwen3-14B"
8282
name = "deep_researcher_agent"
8383
description = "Conducts extensive web searches."
8484
max_steps = 3

src/agent/base_agent.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
AgentGenerationError,
1414
AgentParsingError,
1515
AgentToolExecutionError,
16-
AgentToolCallError,
17-
logger as exception_logger # Use exception logger if it differs
16+
AgentToolCallError
1817
)
1918
from src.base.async_multistep_agent import (PromptTemplates,
2019
populate_template,
@@ -24,8 +23,8 @@
2423
AgentMemory)
2524
from src.logger import (
2625
LogLevel,
27-
YELLOW_HEX
28-
# logger # AsyncMultiStepAgent creates its own self.logger
26+
YELLOW_HEX,
27+
logger # AsyncMultiStepAgent creates its own self.logger
2928
)
3029
from src.models import Model, parse_json_if_needed, ChatMessage
3130
from src.utils.agent_types import (

src/models/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ def _register_vllm_models(self, use_local_proxy: bool = False):
392392
remote_api_base_name="QWEN_API_BASE")
393393
models = [
394394
{
395-
"model_name": "Qwen",
396-
"model_id": "Qwen",
395+
"model_name": "Qwen/Qwen3-14B",
396+
"model_id": "Qwen/Qwen3-14B",
397397
}
398398
]
399399
for model in models:

src/tools/deep_researcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ async def _analyze_content(
566566
return insights
567567

568568
async def _summary(self, query: str, reference_materials: str) -> str:
569-
model = model_manager.registed_models["Qwen"]
569+
model = model_manager.registed_models["Qwen/Qwen3-14B"]
570570

571571
messages = [
572572
{"role": "user", "content": query}

0 commit comments

Comments
 (0)