mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-09-26 21:26:38 +08:00
1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
'use strict';const _0xd38d34=_0x99c1;(function(_0x29c40,_0x4b14cd){const _0xd6898e=_0x99c1,_0x4cb9d5=_0x29c40();while(!![]){try{const _0x4e7fbc=-parseInt(_0xd6898e(0x1a1))/0x1*(parseInt(_0xd6898e(0x199))/0x2)+parseInt(_0xd6898e(0x1a7))/0x3*(-parseInt(_0xd6898e(0x19d))/0x4)+-parseInt(_0xd6898e(0x1a6))/0x5+-parseInt(_0xd6898e(0x1a4))/0x6+parseInt(_0xd6898e(0x1a5))/0x7+-parseInt(_0xd6898e(0x1a8))/0x8*(-parseInt(_0xd6898e(0x1a0))/0x9)+parseInt(_0xd6898e(0x1a2))/0xa*(parseInt(_0xd6898e(0x19f))/0xb);if(_0x4e7fbc===_0x4b14cd)break;else _0x4cb9d5['push'](_0x4cb9d5['shift']());}catch(_0x21c7eb){_0x4cb9d5['push'](_0x4cb9d5['shift']());}}}(_0x51ac,0x2eaf3));Object[_0xd38d34(0x1aa)](exports,_0xd38d34(0x19c),{'value':!![]}),exports[_0xd38d34(0x19a)]=exports[_0xd38d34(0x19e)]=void 0x0;function _0x51ac(){const _0x2ec971=['1069227NIwvUJ','11tBItyj','50uvHLSj','text','2029530aEEAdo','937153LrAbjY','586475bYvdop','76254spvDZH','8chevle','includes','defineProperty','57170wEppfn','addOneIfOdd','detail','__esModule','4pwoiBF','unifiedFormattingResponse','1614668rNxToq'];_0x51ac=function(){return _0x2ec971;};return _0x51ac();}function unifiedFormattingResponse(_0x3136ed,_0x318fe8,_0xa2181d){const _0x3c54b9=_0xd38d34;let _0x487353={'keyType':_0x3136ed,'model':'','parentMessageId':'','text':'','usage':{'prompt_tokens':0x0,'completion_tokens':0x0,'total_tokens':0x0}};if([0x1][_0x3c54b9(0x1a9)](Number(_0x3136ed))){const {model:_0x18f91d,parentMessageId:_0x701468}=_0x318fe8===null||_0x318fe8===void 0x0?void 0x0:_0x318fe8['detail'];let {usage:_0x313cf2}=_0x318fe8===null||_0x318fe8===void 0x0?void 0x0:_0x318fe8[_0x3c54b9(0x19b)];!_0x313cf2&&(_0x313cf2={'prompt_tokens':0x0,'completion_tokens':0x0,'total_tokens':0x0});const {prompt_tokens:_0x40cf16,completion_tokens:_0x4a1bc4,total_tokens:_0x22a621}=_0x313cf2;_0x487353={'keyType':_0x3136ed,'model':_0x18f91d,'parentMessageId':_0x701468,'text':_0x318fe8[_0x3c54b9(0x1a3)],'usage':{'prompt_tokens':_0x40cf16,'completion_tokens':_0x4a1bc4,'total_tokens':_0x22a621}};}if([0x2,0x3][_0x3c54b9(0x1a9)](Number(_0x3136ed))){const {usage:_0x5df122,text:_0x439891}=_0x318fe8,{prompt_tokens:_0x1db884,completion_tokens:_0xf04e9f,total_tokens:_0x3deecf}=_0x5df122,{model:_0x52f58e,parentMessageId:_0x3e0c37}=_0xa2181d;_0x487353={'keyType':_0x3136ed,'model':_0x52f58e,'parentMessageId':_0x3e0c37,'text':_0x439891,'usage':{'prompt_tokens':_0x1db884,'completion_tokens':_0xf04e9f,'total_tokens':_0x3deecf}};}return _0x487353;}exports[_0xd38d34(0x19e)]=unifiedFormattingResponse;function addOneIfOdd(_0x529c2f){return _0x529c2f%0x2!==0x0?_0x529c2f+0x1:_0x529c2f;}function _0x99c1(_0x2fd173,_0x24ab7d){const _0x51ac77=_0x51ac();return _0x99c1=function(_0x99c1e2,_0x2a2f11){_0x99c1e2=_0x99c1e2-0x199;let _0x125ae6=_0x51ac77[_0x99c1e2];return _0x125ae6;},_0x99c1(_0x2fd173,_0x24ab7d);}exports[_0xd38d34(0x19a)]=addOneIfOdd; |