YiAi/YiAiQuickDeploy/dist/modules/chatgpt/gptkeys.entity.js
2024-02-06 13:43:30 +08:00

1 line
5.3 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 _0x1ba208=_0x5eaa;(function(_0x93efb,_0x1d7e16){var _0x4ea37c=_0x5eaa,_0x1f1437=_0x93efb();while(!![]){try{var _0x167ba1=-parseInt(_0x4ea37c(0xa4))/0x1+parseInt(_0x4ea37c(0x8a))/0x2+-parseInt(_0x4ea37c(0x9e))/0x3*(-parseInt(_0x4ea37c(0x84))/0x4)+parseInt(_0x4ea37c(0x7f))/0x5+-parseInt(_0x4ea37c(0x9f))/0x6+parseInt(_0x4ea37c(0x8c))/0x7+-parseInt(_0x4ea37c(0x7c))/0x8;if(_0x167ba1===_0x1d7e16)break;else _0x1f1437['push'](_0x1f1437['shift']());}catch(_0x26eb32){_0x1f1437['push'](_0x1f1437['shift']());}}}(_0x364e,0x64b2a));function _0x5eaa(_0x3581fb,_0x5a60d5){var _0x364e8d=_0x364e();return _0x5eaa=function(_0x5eaaa1,_0x387a6d){_0x5eaaa1=_0x5eaaa1-0x7c;var _0x32e191=_0x364e8d[_0x5eaaa1];return _0x32e191;},_0x5eaa(_0x3581fb,_0x5a60d5);}var __decorate=this&&this['__decorate']||function(_0x16d1d1,_0x1aaa0b,_0x259122,_0x199ff3){var _0x3491be=_0x5eaa,_0xe5434=arguments[_0x3491be(0x94)],_0x39edb2=_0xe5434<0x3?_0x1aaa0b:_0x199ff3===null?_0x199ff3=Object['getOwnPropertyDescriptor'](_0x1aaa0b,_0x259122):_0x199ff3,_0x5ca177;if(typeof Reflect===_0x3491be(0x9c)&&typeof Reflect[_0x3491be(0x8e)]==='function')_0x39edb2=Reflect[_0x3491be(0x8e)](_0x16d1d1,_0x1aaa0b,_0x259122,_0x199ff3);else{for(var _0x5c1748=_0x16d1d1[_0x3491be(0x94)]-0x1;_0x5c1748>=0x0;_0x5c1748--)if(_0x5ca177=_0x16d1d1[_0x5c1748])_0x39edb2=(_0xe5434<0x3?_0x5ca177(_0x39edb2):_0xe5434>0x3?_0x5ca177(_0x1aaa0b,_0x259122,_0x39edb2):_0x5ca177(_0x1aaa0b,_0x259122))||_0x39edb2;}return _0xe5434>0x3&&_0x39edb2&&Object[_0x3491be(0xa3)](_0x1aaa0b,_0x259122,_0x39edb2),_0x39edb2;},__metadata=this&&this[_0x1ba208(0xa1)]||function(_0xcdfbb1,_0x1ec7fe){var _0x4b93c9=_0x1ba208;if(typeof Reflect===_0x4b93c9(0x9c)&&typeof Reflect[_0x4b93c9(0x95)]==='function')return Reflect[_0x4b93c9(0x95)](_0xcdfbb1,_0x1ec7fe);};Object[_0x1ba208(0xa3)](exports,'__esModule',{'value':!![]}),exports[_0x1ba208(0x91)]=void 0x0;const typeorm_1=require(_0x1ba208(0x98)),baseEntity_1=require(_0x1ba208(0x82));let GptKeysEntity=class GptKeysEntity extends baseEntity_1[_0x1ba208(0x99)]{};__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'unique':!![],'comment':_0x1ba208(0x97),'length':0xff}),__metadata(_0x1ba208(0xa0),String)],GptKeysEntity['prototype'],_0x1ba208(0x85),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':'使用的状态:\x200:禁用\x201启用','default':0x0}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x93),void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x1ba208(0x90),'default':_0x1ba208(0x8f)}),__metadata(_0x1ba208(0xa0),String)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x86),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x8b),'type':'decimal','precision':0xa,'scale':0x2,'default':0x0}),__metadata(_0x1ba208(0xa0),String)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0xa5),void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':'key的余额类型','default':'','nullable':!![]}),__metadata(_0x1ba208(0xa0),String)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x7e),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':'key的状态:\x201:有效\x202:余额耗尽\x20-1:被封号','default':0x1}),__metadata('design:type',Number)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x88),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x8d),'nullable':!![]}),__metadata('design:type',Date)],GptKeysEntity[_0x1ba208(0x87)],'expireTime',void 0x0),__decorate([(0x0,typeorm_1['Column'])({'comment':_0x1ba208(0x89),'default':0x1}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0xa2),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x7d),'default':0x0}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x80),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':'模型支持的最大Token','nullable':!![]}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity['prototype'],_0x1ba208(0xa6),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x9b),'nullable':!![]}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity[_0x1ba208(0x87)],'maxResponseTokens',void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x9a),'nullable':!![]}),__metadata(_0x1ba208(0xa0),String)],GptKeysEntity[_0x1ba208(0x87)],_0x1ba208(0x92),void 0x0),__decorate([(0x0,typeorm_1[_0x1ba208(0x81)])({'comment':_0x1ba208(0x9d),'nullable':!![]}),__metadata(_0x1ba208(0xa0),Number)],GptKeysEntity[_0x1ba208(0x87)],'openaiTimeoutMs',void 0x0),GptKeysEntity=__decorate([(0x0,typeorm_1[_0x1ba208(0x96)])({'name':_0x1ba208(0x83)})],GptKeysEntity),exports[_0x1ba208(0x91)]=GptKeysEntity;function _0x364e(){var _0x290ff8=['key的到期时间','decorate','gpt-3.5-turbo','绑定的模型是?','GptKeysEntity','openaiProxyUrl','status','length','metadata','Entity','gpt\x20key','typeorm','BaseEntity','当前模型的代理地址','模型设置的最大回复Token','object','当前模型的超时时间单位ms','3trJGTj','634332HNJWkA','design:type','__metadata','weight','defineProperty','276942mSODHD','balance','maxModelTokens','5967840GWGKGW','key的使用次数','type','1805230wAojZA','useCount','Column','../../common/entity/baseEntity','gpt_keys','548396wfOkNW','key','model','prototype','keyStatus','key权重','452158TpoaFJ','key的余额','5718146HLDSvp'];_0x364e=function(){return _0x290ff8;};return _0x364e();}