mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
fix: 修复豆包适配器无法点击选择模型的问题 (closes #28)
This commit is contained in:
@@ -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/),
|
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).
|
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
|
## [3.5.6] - 2026-03-20
|
||||||
|
|
||||||
### 🐛 Fixed
|
### 🐛 Fixed
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
|
|||||||
const modelMenuName = MODEL_MENU_MAP[modelId] || MODEL_MENU_MAP['seed'];
|
const modelMenuName = MODEL_MENU_MAP[modelId] || MODEL_MENU_MAP['seed'];
|
||||||
logger.debug('适配器', `选择模型: ${modelId} -> ${modelMenuName}`, meta);
|
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;
|
const selectorExists = await modelSelectorBtn.count() > 0;
|
||||||
|
|
||||||
if (selectorExists) {
|
if (selectorExists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user