mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-26 05:06:39 +08:00
1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
'use strict';function _0x50a0(_0x25880d,_0x56bfe2){const _0x144ee5=_0x144e();return _0x50a0=function(_0x50a036,_0x29e053){_0x50a036=_0x50a036-0xc1;let _0x31d32c=_0x144ee5[_0x50a036];return _0x31d32c;},_0x50a0(_0x25880d,_0x56bfe2);}const _0x485be6=_0x50a0;(function(_0x560160,_0x7bc76){const _0x2f591d=_0x50a0,_0xc2c47a=_0x560160();while(!![]){try{const _0x181b65=parseInt(_0x2f591d(0xc3))/0x1*(-parseInt(_0x2f591d(0xc7))/0x2)+parseInt(_0x2f591d(0xc4))/0x3+parseInt(_0x2f591d(0xd0))/0x4+parseInt(_0x2f591d(0xc5))/0x5*(-parseInt(_0x2f591d(0xc1))/0x6)+parseInt(_0x2f591d(0xc9))/0x7*(-parseInt(_0x2f591d(0xc8))/0x8)+-parseInt(_0x2f591d(0xce))/0x9+parseInt(_0x2f591d(0xcd))/0xa*(parseInt(_0x2f591d(0xcf))/0xb);if(_0x181b65===_0x7bc76)break;else _0xc2c47a['push'](_0xc2c47a['shift']());}catch(_0x4ac189){_0xc2c47a['push'](_0xc2c47a['shift']());}}}(_0x144e,0x54a54));function _0x144e(){const _0x1998bf=['10ngkctp','defineProperty','32GgdzRg','1072YpztAy','6685CJdfjw','detail','addOneIfOdd','unifiedFormattingResponse','20hqXecU','1466253wAubCo','1202883BujaOL','753352SbVCqi','text','187662UYAzst','includes','12547zfSFoC','1481571sNnkiQ'];_0x144e=function(){return _0x1998bf;};return _0x144e();}Object[_0x485be6(0xc6)](exports,'__esModule',{'value':!![]}),exports['addOneIfOdd']=exports[_0x485be6(0xcc)]=void 0x0;function unifiedFormattingResponse(_0x52a1e4,_0x135f34,_0xb196aa){const _0x516809=_0x485be6;let _0x938557={'keyType':_0x52a1e4,'model':'','parentMessageId':'','text':'','usage':{'prompt_tokens':0x0,'completion_tokens':0x0,'total_tokens':0x0}};if([0x1][_0x516809(0xc2)](Number(_0x52a1e4))){const {model:_0x2bcfbb,parentMessageId:_0x5bdbb7}=_0x135f34===null||_0x135f34===void 0x0?void 0x0:_0x135f34[_0x516809(0xca)];let {usage:_0x147fd3}=_0x135f34===null||_0x135f34===void 0x0?void 0x0:_0x135f34[_0x516809(0xca)];!_0x147fd3&&(_0x147fd3={'prompt_tokens':0x0,'completion_tokens':0x0,'total_tokens':0x0});const {prompt_tokens:_0x122e42,completion_tokens:_0x43d877,total_tokens:_0x462dad}=_0x147fd3;_0x938557={'keyType':_0x52a1e4,'model':_0x2bcfbb,'parentMessageId':_0x5bdbb7,'text':_0x135f34[_0x516809(0xd1)],'usage':{'prompt_tokens':_0x122e42,'completion_tokens':_0x43d877,'total_tokens':_0x462dad}};}if([0x2,0x3][_0x516809(0xc2)](Number(_0x52a1e4))){const {usage:_0x29aa94,text:_0x298f9c}=_0x135f34,{prompt_tokens:_0x1a4fe6,completion_tokens:_0x37436b,total_tokens:_0x3ee4c6}=_0x29aa94,{model:_0x24f584,parentMessageId:_0x54f55a}=_0xb196aa;_0x938557={'keyType':_0x52a1e4,'model':_0x24f584,'parentMessageId':_0x54f55a,'text':_0x298f9c,'usage':{'prompt_tokens':_0x1a4fe6,'completion_tokens':_0x37436b,'total_tokens':_0x3ee4c6}};}return _0x938557;}exports[_0x485be6(0xcc)]=unifiedFormattingResponse;function addOneIfOdd(_0x3dff96){return _0x3dff96%0x2!==0x0?_0x3dff96+0x1:_0x3dff96;}exports[_0x485be6(0xcb)]=addOneIfOdd; |