|
虽然 Gemini 支持 200 万上下文,但实际使用中超过 10 万上下文时会卡顿。以下提供一种解决方法:
javascript()=>{const a=document.createElement('input');a.type='file';a.onchange=async(e)=>{const b=e.target.files[0];const c=await b.text();const d=document.getElementById('chat-input');d.value='文档解读。若接收的长文本末端不是 *长文本加载完成!* 请告之。\n```\n'+c+'\n```\n长文本加载完成!';d.dispatchEvent(new Event('input',{bubbles:true}));const f=document.querySelector('button.button_icon-button__VwAMf.chat_chat-input-send__GFQZo');f.click();await new Promise(r=>setTimeout(r,10));const g=document.getElementsByClassName('button_icon-button__VwAMf undefined undefined clickable undefined');g[g.length-3].click();await new Promise(r=>setTimeout(r,10));document.querySelector('.ui-lib_modal-input__vxrdT').value='(๑•̀ㅂ•́)و✧ File sent! |
|