-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgemini-ai.js
More file actions
1 lines (1 loc) · 3.21 KB
/
gemini-ai.js
File metadata and controls
1 lines (1 loc) · 3.21 KB
1
function a0_0xeb77(_0x49a1ea,_0x31510e){const _0x498d1a=a0_0x498d();return a0_0xeb77=function(_0xeb77ba,_0x5f30f0){_0xeb77ba=_0xeb77ba-0x1b1;let _0x4e0b52=_0x498d1a[_0xeb77ba];return _0x4e0b52;},a0_0xeb77(_0x49a1ea,_0x31510e);}(function(_0x91bbf2,_0xc0a1a6){const _0x5b4e73=a0_0xeb77,_0x197cb4=_0x91bbf2();while(!![]){try{const _0x5d9000=-parseInt(_0x5b4e73(0x1bb))/0x1*(parseInt(_0x5b4e73(0x1c3))/0x2)+parseInt(_0x5b4e73(0x1c4))/0x3*(-parseInt(_0x5b4e73(0x1cf))/0x4)+parseInt(_0x5b4e73(0x1c8))/0x5*(-parseInt(_0x5b4e73(0x1ce))/0x6)+parseInt(_0x5b4e73(0x1b8))/0x7+-parseInt(_0x5b4e73(0x1c2))/0x8*(-parseInt(_0x5b4e73(0x1c0))/0x9)+-parseInt(_0x5b4e73(0x1c1))/0xa*(-parseInt(_0x5b4e73(0x1ba))/0xb)+parseInt(_0x5b4e73(0x1c9))/0xc;if(_0x5d9000===_0xc0a1a6)break;else _0x197cb4['push'](_0x197cb4['shift']());}catch(_0x2520db){_0x197cb4['push'](_0x197cb4['shift']());}}}(a0_0x498d,0x6a704),function(_0x534fea){const _0x35e868=a0_0xeb77,_0x2ed047={'jdVSL':function(_0x157f5e,_0x4644dc){return _0x157f5e(_0x4644dc);},'rGwNR':function(_0x20f36d,_0x47aa39,_0x2c6c6e){return _0x20f36d(_0x47aa39,_0x2c6c6e);},'IMJII':function(_0x226485){return _0x226485();},'XwbUh':'POST','FQBbV':'application/json','lcSuL':_0x35e868(0x1cb)},_0x5f4148=()=>{return new Promise(_0x21e2e4=>{const _0x4782ce=a0_0xeb77,_0x184000={'xMfFJ':function(_0x1b5158,_0x87a07e){const _0x1960e9=a0_0xeb77;return _0x2ed047[_0x1960e9(0x1c7)](_0x1b5158,_0x87a07e);},'mnjtR':function(_0x2d87e9,_0x2303af,_0x4c159f){const _0x3e1972=a0_0xeb77;return _0x2ed047[_0x3e1972(0x1bd)](_0x2d87e9,_0x2303af,_0x4c159f);}},_0x55253b=()=>{const _0xafaeb0=a0_0xeb77;window[_0xafaeb0(0x1be)]?.[_0xafaeb0(0x1b1)]?_0x184000[_0xafaeb0(0x1bf)](_0x21e2e4,window[_0xafaeb0(0x1be)]['GEMINI_API_KEY']):_0x184000[_0xafaeb0(0x1b9)](setTimeout,_0x55253b,0x64);};_0x2ed047[_0x4782ce(0x1c6)](_0x55253b);});};class _0xc83578{constructor(_0x2e0386){const _0x165102=_0x35e868;this[_0x165102(0x1b4)]=_0x2e0386;}[_0x35e868(0x1d1)]({model:_0x453f09}){return{'generateContent':async _0x1ef343=>{const _0x5b5b41=a0_0xeb77;try{const _0x356331=await fetch(_0x5b5b41(0x1b6)+_0x453f09+':generateContent?key='+this[_0x5b5b41(0x1b4)],{'method':_0x2ed047[_0x5b5b41(0x1d0)],'headers':{'Content-Type':_0x2ed047['FQBbV']},'body':JSON[_0x5b5b41(0x1cd)]({'contents':_0x1ef343[0x0]})}),_0x3e7e02=await _0x356331[_0x5b5b41(0x1cc)]();return{'response':{'text':()=>_0x3e7e02['candidates'][0x0][_0x5b5b41(0x1bc)][_0x5b5b41(0x1ca)][0x0][_0x5b5b41(0x1b2)]}};}catch(_0x2f54a5){console[_0x5b5b41(0x1b7)](_0x2ed047[_0x5b5b41(0x1b5)],_0x2f54a5);throw _0x2f54a5;}}};}}_0x2ed047[_0x35e868(0x1c6)](_0x5f4148)[_0x35e868(0x1b3)](_0x415f55=>{const _0x5937c8=_0x35e868;_0x534fea[_0x5937c8(0x1c5)]=_0xc83578,_0x534fea[_0x5937c8(0x1b1)]=_0x415f55;});}(window));function a0_0x498d(){const _0x25cf00=['GoogleGenerativeAI','IMJII','jdVSL','10RevGzq','17334912uVWkIQ','parts','Gemini\x20API\x20Error:','json','stringify','1946946vDKDGK','31616LQCrvE','XwbUh','getGenerativeModel','GEMINI_API_KEY','text','then','apiKey','lcSuL','https://generativelanguage.googleapis.com/v1beta/models/','error','1611890qOQKty','mnjtR','712723kmVMlE','163237FBHunh','content','rGwNR','ENV','xMfFJ','1682739WWBCYh','100rnbKxi','8EPHgXc','10MrzWAE','231ZFUwAV'];a0_0x498d=function(){return _0x25cf00;};return a0_0x498d();}