修复AGC配置测试字段
Project CI / Repository checks (pull_request) Successful in 2m46s
Project CI / Frontend tests (pull_request) Successful in 2m55s
Project CI / Backend tests (pull_request) Successful in 7m6s
Project CI / Native shell tests (pull_request) Successful in 18m3s

同步配置测试夹具使用 selected_model_id

移除已删除的 model_profiles 与 selected_model_profile_id 字段
This commit is contained in:
2026-09-06 01:16:48 +08:00
parent 736a1b6ac6
commit 6166094a3c
@@ -737,8 +737,7 @@ fn app_config_commands_write_runtime_config_file() {
},
agent_llm,
planning: GameCreatorPlanningConfig::default(),
model_profiles: Vec::new(),
selected_model_profile_id: "default".to_string(),
selected_model_id: "default".to_string(),
})
.expect("write runtime config");
@@ -824,8 +823,7 @@ fn app_config_write_rejects_invalid_api_kind() {
editor_api: GameCreatorEditorApiConfig::default(),
agent_llm: BTreeMap::new(),
planning: GameCreatorPlanningConfig::default(),
model_profiles: Vec::new(),
selected_model_profile_id: "default".to_string(),
selected_model_id: "default".to_string(),
});
assert!(result
@@ -851,8 +849,7 @@ fn app_config_write_rejects_invalid_reasoning_effort() {
editor_api: GameCreatorEditorApiConfig::default(),
agent_llm: BTreeMap::new(),
planning: GameCreatorPlanningConfig::default(),
model_profiles: Vec::new(),
selected_model_profile_id: "default".to_string(),
selected_model_id: "default".to_string(),
});
assert!(result
@@ -878,8 +875,7 @@ fn app_config_write_rejects_too_small_request_timeout() {
editor_api: GameCreatorEditorApiConfig::default(),
agent_llm: BTreeMap::new(),
planning: GameCreatorPlanningConfig::default(),
model_profiles: Vec::new(),
selected_model_profile_id: "default".to_string(),
selected_model_id: "default".to_string(),
});
assert!(result