fix: 修复豆包适配器无法点击选择模型的问题 (closes #28)

This commit is contained in:
foxhui
2026-03-22 23:46:57 +08:00
Unverified
parent 0f33e1393e
commit 09bdfd95fa
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
const modelMenuName = MODEL_MENU_MAP[modelId] || MODEL_MENU_MAP['seed'];
logger.debug('适配器', `选择模型: ${modelId} -> ${modelMenuName}`, meta);
const modelSelectorBtn = page.locator('div[data-testid="deep-thinking-action-button"]');
const modelSelectorBtn = page.locator('main button[aria-haspopup="menu"]:has(div[data-testid="deep-thinking-action-button"])');
const selectorExists = await modelSelectorBtn.count() > 0;
if (selectorExists) {