chore(ai): smoke concurrency override + ab-v9 matrix

This commit is contained in:
Fini 2026-06-21 23:18:21 +08:00
parent ea3f94093c
commit d517c0a2c0
2 changed files with 24 additions and 2 deletions

View file

@ -453,8 +453,19 @@ async fn main() -> std::process::ExitCode {
}
};
// `OPENPENCIL_SMOKE_STARTER=1` seeds the fresh-canvas starter frame so a
// smoke run exercises the TS `replaceEmptyFrame` reuse path (the desktop
// GUI always carries this single empty starter); default stays the empty
// `new()` doc so existing traces are unaffected.
let seed_starter = std::env::var("OPENPENCIL_SMOKE_STARTER")
.map(|v| v == "1" || v.eq_ignore_ascii_case("true"))
.unwrap_or(false);
let mut sink = InlineDocSink {
state: EditorState::new(),
state: if seed_starter {
EditorState::starter()
} else {
EditorState::new()
},
};
let request = DesignRequest {
prompt,
@ -462,7 +473,10 @@ async fn main() -> std::process::ExitCode {
provider: None,
design_md: sink.state.doc.design_md.clone(),
append_context: None,
concurrency: 1,
concurrency: std::env::var("OPENPENCIL_SMOKE_CONCURRENCY")
.ok()
.and_then(|s| s.parse().ok())
.unwrap_or(1),
validation_enabled: false,
visual_ref_enabled: false,
};

View file

@ -80,6 +80,14 @@ PROVIDERS = {
"model": "glm-5.1",
"key_env": "ARK_KEY",
},
# 方舟 CP 的 GLM-5.2(2026-06-17 用户报方舟已上线)。走方舟 coding v3 +
# ARK_KEY,与下面智谱官方 CP 的 glm-5.2(GLM_BASE/GLM_KEY)区分——这条
# 走方舟侧的 glm-5.2 别名。
"ark-glm-5.2": {
"base": ARK_BASE,
"model": "glm-5.2",
"key_env": "ARK_KEY",
},
# 智谱官方 Coding Plan,GLM-5.2(用户 2026-06-15 提供的 id.secret key)。
"glm-5.2": {
"base": GLM_BASE,