YiAi/YiAiQuickDeploy/dist/modules/chatgpt/gptkeys.entity.js
2024-07-02 16:38:26 +08:00

1 line
5.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';var _0x563861=_0x146b;(function(_0xec96e5,_0x850795){var _0x4c90c1=_0x146b,_0x5c8801=_0xec96e5();while(!![]){try{var _0x27458d=-parseInt(_0x4c90c1(0x11c))/0x1+-parseInt(_0x4c90c1(0x139))/0x2*(parseInt(_0x4c90c1(0x135))/0x3)+parseInt(_0x4c90c1(0x11a))/0x4*(parseInt(_0x4c90c1(0x123))/0x5)+-parseInt(_0x4c90c1(0x115))/0x6+parseInt(_0x4c90c1(0x13c))/0x7*(parseInt(_0x4c90c1(0x121))/0x8)+-parseInt(_0x4c90c1(0x119))/0x9+parseInt(_0x4c90c1(0x114))/0xa;if(_0x27458d===_0x850795)break;else _0x5c8801['push'](_0x5c8801['shift']());}catch(_0x5d8e1b){_0x5c8801['push'](_0x5c8801['shift']());}}}(_0x4035,0xc86b2));function _0x146b(_0x2c69e9,_0x1c9692){var _0x403515=_0x4035();return _0x146b=function(_0x146bb6,_0x4bf7bd){_0x146bb6=_0x146bb6-0x110;var _0x2cf3b9=_0x403515[_0x146bb6];return _0x2cf3b9;},_0x146b(_0x2c69e9,_0x1c9692);}var __decorate=this&&this[_0x563861(0x129)]||function(_0x55b9d3,_0x48c38d,_0x5cb1e6,_0x11a7f0){var _0x45402e=_0x563861,_0x3ab828=arguments[_0x45402e(0x11b)],_0x57e26b=_0x3ab828<0x3?_0x48c38d:_0x11a7f0===null?_0x11a7f0=Object[_0x45402e(0x122)](_0x48c38d,_0x5cb1e6):_0x11a7f0,_0x1461da;if(typeof Reflect===_0x45402e(0x11f)&&typeof Reflect['decorate']===_0x45402e(0x12d))_0x57e26b=Reflect['decorate'](_0x55b9d3,_0x48c38d,_0x5cb1e6,_0x11a7f0);else{for(var _0x5a5fb8=_0x55b9d3[_0x45402e(0x11b)]-0x1;_0x5a5fb8>=0x0;_0x5a5fb8--)if(_0x1461da=_0x55b9d3[_0x5a5fb8])_0x57e26b=(_0x3ab828<0x3?_0x1461da(_0x57e26b):_0x3ab828>0x3?_0x1461da(_0x48c38d,_0x5cb1e6,_0x57e26b):_0x1461da(_0x48c38d,_0x5cb1e6))||_0x57e26b;}return _0x3ab828>0x3&&_0x57e26b&&Object[_0x45402e(0x13d)](_0x48c38d,_0x5cb1e6,_0x57e26b),_0x57e26b;},__metadata=this&&this['__metadata']||function(_0x43b191,_0x2b7b44){var _0x1002c5=_0x563861;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x1002c5(0x12d))return Reflect[_0x1002c5(0x134)](_0x43b191,_0x2b7b44);};Object[_0x563861(0x13d)](exports,_0x563861(0x12a),{'value':!![]}),exports[_0x563861(0x125)]=void 0x0;function _0x4035(){var _0x22584e=['2662936IAorYx','getOwnPropertyDescriptor','10WYEpVJ','balance','GptKeysEntity','design:type','gpt-3.5-turbo','key的状态:\x201:有效\x202:余额耗尽\x20-1:被封号','__decorate','__esModule','当前模型的超时时间单位ms','weight','function','key的余额','decimal','expireTime','gpt_keys','Column','model','metadata','111XXXxAP','key的使用次数','绑定的模型是?','BaseEntity','61486aJQjue','openaiTimeoutMs','key权重','7QUqfZs','defineProperty','模型设置的最大回复Token','useCount','prototype','openaiProxyUrl','当前模型的代理地址','38863090gIpxvz','4906440TiIamH','typeorm','Entity','key的到期时间','13274721HJouzC','1583068lLguPx','length','759596wJjqFV','maxResponseTokens','maxModelTokens','object','type'];_0x4035=function(){return _0x22584e;};return _0x4035();}const typeorm_1=require(_0x563861(0x116)),baseEntity_1=require('../../common/entity/baseEntity');let GptKeysEntity=class GptKeysEntity extends baseEntity_1[_0x563861(0x138)]{};__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'unique':!![],'comment':'gpt\x20key','length':0xff}),__metadata(_0x563861(0x126),String)],GptKeysEntity['prototype'],'key',void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':'使用的状态:\x200:禁用\x201启用','default':0x0}),__metadata(_0x563861(0x126),Number)],GptKeysEntity[_0x563861(0x111)],'status',void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x563861(0x137),'default':_0x563861(0x127)}),__metadata(_0x563861(0x126),String)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x133),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':_0x563861(0x12e),'type':_0x563861(0x12f),'precision':0xa,'scale':0x2,'default':0x0}),__metadata(_0x563861(0x126),String)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x124),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':'key的余额类型','default':'','nullable':!![]}),__metadata('design:type',String)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x120),void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x563861(0x128),'default':0x1}),__metadata(_0x563861(0x126),Number)],GptKeysEntity['prototype'],'keyStatus',void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x563861(0x118),'nullable':!![]}),__metadata(_0x563861(0x126),Date)],GptKeysEntity['prototype'],_0x563861(0x130),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':_0x563861(0x13b),'default':0x1}),__metadata(_0x563861(0x126),Number)],GptKeysEntity['prototype'],_0x563861(0x12c),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':_0x563861(0x136),'default':0x0}),__metadata(_0x563861(0x126),Number)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x110),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':'模型支持的最大Token','nullable':!![]}),__metadata(_0x563861(0x126),Number)],GptKeysEntity['prototype'],_0x563861(0x11e),void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x563861(0x13e),'nullable':!![]}),__metadata(_0x563861(0x126),Number)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x11d),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':_0x563861(0x113),'nullable':!![]}),__metadata(_0x563861(0x126),String)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x112),void 0x0),__decorate([(0x0,typeorm_1[_0x563861(0x132)])({'comment':_0x563861(0x12b),'nullable':!![]}),__metadata('design:type',Number)],GptKeysEntity[_0x563861(0x111)],_0x563861(0x13a),void 0x0),GptKeysEntity=__decorate([(0x0,typeorm_1[_0x563861(0x117)])({'name':_0x563861(0x131)})],GptKeysEntity),exports[_0x563861(0x125)]=GptKeysEntity;