From 3f2f2564d551fc17af0bfb9ee2176188240b9d4e Mon Sep 17 00:00:00 2001 From: posimai Date: Tue, 14 Apr 2026 23:12:50 +0900 Subject: [PATCH] fix(brain): switch analyzeWithGemini from gemini-2.0-flash-lite to gemini-2.5-flash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gemini-2.0-flash-lite のフリー枠日次クォータが枯渇し AI 分析が全件失敗していた。 gemini-2.5-flash に統一してクォータ問題を解消する。 Co-Authored-By: Claude Sonnet 4.6 --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index f837a41b..8d34c473 100644 --- a/server.js +++ b/server.js @@ -432,7 +432,7 @@ async function analyzeWithGemini(title, fullText, url) { if (!genAI) return { summary: (fullText || '').slice(0, 120) || '(要約なし)', topics: ['その他'], readingTime: 3 }; try { const model = genAI.getGenerativeModel({ - model: 'gemini-2.0-flash-lite', + model: 'gemini-2.5-flash', generationConfig: { responseMimeType: 'application/json' } }); const prompt = `記事分析してJSONで返答: @@ -1745,7 +1745,7 @@ function buildRouter() { if (!title && !body) return res.status(400).json({ error: 'title or body required' }); try { const model = genAI.getGenerativeModel({ - model: 'gemini-2.0-flash-lite', + model: 'gemini-2.5-flash', generationConfig: { responseMimeType: 'application/json' } }); const excerpt = smartExtract(body, 2000);