mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
fix: 修复 Gemini 无法点击图片上传按钮的问题
This commit is contained in:
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### 🐛 Fixed
|
||||
- **适配器**
|
||||
- 修复 Gemini 图片生成适配器因前端更新导致无法点击 Create images 按钮的问题
|
||||
- 修复 Gemini 图片生成适配器因前端更新导致无法点击上传图片按钮的问题
|
||||
- 更新 LMArena 模型列表
|
||||
|
||||
## [3.5.1] - 2026-01-24
|
||||
|
||||
@@ -51,7 +51,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
|
||||
await safeClick(page, uploadMenuBtn, { bias: 'button' });
|
||||
|
||||
// 使用公共函数上传文件
|
||||
const uploadFilesBtn = page.getByRole('button', { name: /Upload files/ });
|
||||
const uploadFilesBtn = page.getByRole('menuitem', { name: /Upload files/ });
|
||||
await uploadFilesViaChooser(page, uploadFilesBtn, imgPaths, {
|
||||
uploadValidator: (response) => {
|
||||
const url = response.url();
|
||||
|
||||
@@ -48,7 +48,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) {
|
||||
const uploadMenuBtn = page.getByRole('button', { name: 'Open upload file menu' });
|
||||
await safeClick(page, uploadMenuBtn, { bias: 'button' });
|
||||
|
||||
const uploadFilesBtn = page.getByRole('button', { name: /Upload files/ });
|
||||
const uploadFilesBtn = page.getByRole('menuitem', { name: /Upload files/ });
|
||||
await uploadFilesViaChooser(page, uploadFilesBtn, imgPaths, {
|
||||
uploadValidator: (response) => {
|
||||
const url = response.url();
|
||||
|
||||
Reference in New Issue
Block a user