Spaces:
Paused
Paused
Fix: Change Gemini model cascade to use official gemini-2.5-flash and gemini-1.5-flash to prevent hallucinated endpoints returning truncated garbage, and remove maxOutputTokens limit
Browse filesFiles changed (2)
- index.html+1-1
- server/news-service.js+3-6
50 unmodified lines5152535455565750 unmodified lines</head><body class="dark-theme in-chat-view"><div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.3.7</div><!-- SVG Filters for Liquid Glass Refraction --><svg width="0" height="0" style="position: absolute; pointer-events: none;">50 unmodified lines5152535455565750 unmodified lines</head><body class="dark-theme in-chat-view"><div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.3.8</div><!-- SVG Filters for Liquid Glass Refraction --><svg width="0" height="0" style="position: absolute; pointer-events: none;">
143 unmodified lines144145146147148149150151152153154155156157158159143 unmodified linesconst body = {contents: [{ parts: [{ text: prompt }] }],generationConfig: {temperature: 0.7,maxOutputTokens: 1024,}};const cascade = [{ name: 'gemini-3.5-flash', shouldSimulateError: simulateError },{ name: 'gemini-3.5-flash', isRetry: true, delayMs: 10000, shouldSimulateError: simulateError },{ name: 'gemini-2.5-flash', shouldSimulateError: false },{ name: 'gemini-3.1-flash-lite', shouldSimulateError: false }];for (const step of cascade) {143 unmodified lines144145146147148149150151152153154155156143 unmodified linesconst body = {contents: [{ parts: [{ text: prompt }] }],generationConfig: {temperature: 0.7}};const cascade = [{ name: 'gemini-2.5-flash', shouldSimulateError: simulateError },{ name: 'gemini-1.5-flash', shouldSimulateError: false }];for (const step of cascade) {
index.html+1-1
server/news-service.js+3-6