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
+12
View File
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.5.8] - 2026-03-22
### 🐛 Fixed
- **适配器**
- 修复豆包适配器无法点击选择模型的问题
## [3.5.7] - 2026-03-21
### 🔄 Changed
- **浏览器**
- 扩展拟人点击策略并增强坐标安全性
## [3.5.6] - 2026-03-20
### 🐛 Fixed
+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) {