diff --git a/CHANGELOG.md b/CHANGELOG.md index b99dd12..446a9c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,14 @@ 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.5] - 2026-03-05 +## [3.5.6] - 2026-03-20 + +### ๐Ÿ› Fixed +- **้€‚้…ๅ™จ** + - ไฟฎๅค Gemini ้€‚้…ๅ™จๅฏ่ƒฝไผš็‚นไธๅˆฐๅ‘้€ๆŒ‰้’ฎ็š„้—ฎ้ข˜ + +## [3.5.6] - 2026-03-20 + ### โœจ Added - **่ฑ†ๅŒ…** - ๅขžๅŠ ่ฑ†ๅŒ… Pro ๆจกๅž‹็š„ๆ”ฏๆŒ diff --git a/src/backend/adapter/gemini.js b/src/backend/adapter/gemini.js index f515332..fe65f4d 100644 --- a/src/backend/adapter/gemini.js +++ b/src/backend/adapter/gemini.js @@ -64,12 +64,7 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) { logger.info('้€‚้…ๅ™จ', 'ๅ›พ็‰‡ไธŠไผ ๅฎŒๆˆ', meta); } - // 3. ่พ“ๅ…ฅๆ็คบ่ฏ - logger.info('้€‚้…ๅ™จ', '่พ“ๅ…ฅๆ็คบ่ฏ...', meta); - await safeClick(page, inputLocator, { bias: 'input' }); - await humanType(page, inputLocator, prompt); - - // 4. ็‚นๅ‡ป Tools ๆŒ‰้’ฎๅฏ็”จๅ›พ็‰‡/่ง†้ข‘็”Ÿๆˆ + // 3. ็‚นๅ‡ป Tools ๆŒ‰้’ฎๅฏ็”จๅ›พ็‰‡/่ง†้ข‘็”Ÿๆˆ logger.debug('้€‚้…ๅ™จ', '็‚นๅ‡ป Tools ๆŒ‰้’ฎ...', meta); const toolsBtn = page.getByRole('button', { name: 'Tools' }); await safeClick(page, toolsBtn, { bias: 'button' }); @@ -96,6 +91,12 @@ async function generate(context, prompt, imgPaths, modelId, meta = {}) { await safeClick(page, createImagesBtn, { bias: 'button' }); } + // 4. ่พ“ๅ…ฅๆ็คบ่ฏ + logger.info('้€‚้…ๅ™จ', '่พ“ๅ…ฅๆ็คบ่ฏ...', meta); + await sleep(300, 500); + await safeClick(page, inputLocator, { bias: 'input' }); + await humanType(page, inputLocator, prompt); + // 6. ๅ…ˆๅฏๅŠจ API ็›‘ๅฌ logger.debug('้€‚้…ๅ™จ', 'ๅฏๅŠจ API ็›‘ๅฌ...', meta); const streamApiResponsePromise = waitApiResponse(page, {