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

1 line
18 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';const _0x4d52ec=_0x48de;(function(_0x5e4cae,_0x3339a5){const _0x27449f=_0x48de,_0x52536b=_0x5e4cae();while(!![]){try{const _0x35d670=-parseInt(_0x27449f(0x131))/0x1+-parseInt(_0x27449f(0x113))/0x2+-parseInt(_0x27449f(0x128))/0x3+parseInt(_0x27449f(0xf7))/0x4+parseInt(_0x27449f(0x11d))/0x5*(-parseInt(_0x27449f(0x125))/0x6)+parseInt(_0x27449f(0xd6))/0x7+-parseInt(_0x27449f(0xdf))/0x8*(-parseInt(_0x27449f(0xe5))/0x9);if(_0x35d670===_0x3339a5)break;else _0x52536b['push'](_0x52536b['shift']());}catch(_0x3a6c8b){_0x52536b['push'](_0x52536b['shift']());}}}(_0x1bc6,0x8cf22));function _0x1bc6(){const _0x1a798c=['getConfigs','midjourney是一款AI绘画工具只要你输入你想到的文字就能通过人工智能产出相对应的图片、我希望你作为MidJourney程序的提示词(prompt)生成器。你的工作是根据我给你的一段提示内容扩展为更详细和更有创意的描述以激发人工智能的独特和有趣的图像。请记住人工智能能够理解广泛的语言并能解释抽象的概念所以请自由发挥想象力和描述力尽可能地发挥。例如你可以描述一个未来城市的场景或一个充满奇怪生物的超现实景观。你的描述越详细、越有想象力产生的图像就越有趣、Midjourney\x20prompt的标准公式为:(image\x20we\x27re\x20prompting).(5\x20descriptivekeywords).\x20(camera\x20type).\x20(camera\x20lens\x20type).\x20(time\x20of\x20day)(style\x20of\x20photograph).(type\x20offilm)、请记住这个公式后续统一使用该公式进行prompt生成、最终把我给你的提示变成一整段连续不分开的完整内容并且只需要用英文回复您的联想、一定不要回复别内容、包括解释、我只需要纯粹的内容。','添加修改ChatBox','setChatBoxType','2100488HaCnhj','chatmind','draw','../../common/auth/superAuth.guard','mjCustomLianxiangPrompt','chatProcessSync','queryChatPres','SuperAuthGuard','ChatDrawDto','Req','30VpAOjK','prototype','length','setChatPreType','object','queryChatPreList','查询ChatPretype','chat-draw','76674nhrNIx','mjAssociate','ApiTags','2467848QLrNxp','mj-fy','ApiOperation','Res','metadata','systemMessage','gpt描述词绘画翻译','mj-associate','chatProcess','889815aNzdbV','design:type','chatgptService','Get','decorate','AdminAuthGuard','GlobalConfigService','queryChatBoxTypes','gpt绘画','mjFanyi','我希望你使用markdown格式回答我得问题、我的需求是得到一份markdown格式的大纲、尽量做的精细、层级多一点、不管我问你什么、都需要您回复我一个大纲出来、我想使用大纲做思维导图、除了大纲之外、不要无关内容和总结。','6789251JrRwhU','assign','design:returntype','chat-process','添加修改ChatPre','添加修改分类类型','globalConfigService','delChatPreType','添加修改ChatBox提示词','8lfZPtG','setChatBox','接下来我会给你一些内容、我希望你帮我翻译成英文、不管我给你任何语言、你都回复我英文、如果给你了英文、依然回复我更加优化的英文、并且期望你不需要做任何多余的解释、给我英文即可、不要加任何东西、我只需要英文!','mjCustomFanyiPrompt','queryChatPre','ApiBearerAuth','17777223wnMqqf','defineProperty','Post','ChatgptService','chat-sync','queryChatBox','gpt聊天对话','ChatProcessDto','__esModule','添加修改预设分类类型','__param','queryChatPreType','查询ChatPre列表','__metadata','../../common/auth/adminAuth.guard','./chatgpt.service','@nestjs/common','查询ChatBox分类加详细','1886092FmcTHX','mind思维导图提示','delChatBox','Body','Controller','chatgpt','queryChatBoxType','delChatPretype','ChatgptController','delChatPre','function','添加修改ChatBoxType','getOwnPropertyDescriptor','queryChatBoxFrontend','JwtAuthGuard','UseGuards','./dto/chatProcess.dto','查询ChatBoxType','design:paramtypes','delChatBoxType','setChatPre','mindCustomPrompt','chat-mind','@nestjs/swagger'];_0x1bc6=function(){return _0x1a798c;};return _0x1bc6();}var __decorate=this&&this['__decorate']||function(_0x2403e2,_0x4ebb33,_0x1cafc8,_0x2e5b50){const _0x390e57=_0x48de;var _0x3dfde6=arguments[_0x390e57(0x11f)],_0x10f34a=_0x3dfde6<0x3?_0x4ebb33:_0x2e5b50===null?_0x2e5b50=Object[_0x390e57(0x103)](_0x4ebb33,_0x1cafc8):_0x2e5b50,_0xe99736;if(typeof Reflect===_0x390e57(0x121)&&typeof Reflect[_0x390e57(0xcf)]==='function')_0x10f34a=Reflect['decorate'](_0x2403e2,_0x4ebb33,_0x1cafc8,_0x2e5b50);else{for(var _0x43c5ad=_0x2403e2[_0x390e57(0x11f)]-0x1;_0x43c5ad>=0x0;_0x43c5ad--)if(_0xe99736=_0x2403e2[_0x43c5ad])_0x10f34a=(_0x3dfde6<0x3?_0xe99736(_0x10f34a):_0x3dfde6>0x3?_0xe99736(_0x4ebb33,_0x1cafc8,_0x10f34a):_0xe99736(_0x4ebb33,_0x1cafc8))||_0x10f34a;}return _0x3dfde6>0x3&&_0x10f34a&&Object[_0x390e57(0xe6)](_0x4ebb33,_0x1cafc8,_0x10f34a),_0x10f34a;},__metadata=this&&this[_0x4d52ec(0xf2)]||function(_0x3e3537,_0x1caede){const _0x1a4f29=_0x4d52ec;if(typeof Reflect===_0x1a4f29(0x121)&&typeof Reflect['metadata']===_0x1a4f29(0x101))return Reflect[_0x1a4f29(0x12c)](_0x3e3537,_0x1caede);},__param=this&&this[_0x4d52ec(0xef)]||function(_0x32f8d7,_0x55fa69){return function(_0x15e24e,_0xf9d3c5){_0x55fa69(_0x15e24e,_0xf9d3c5,_0x32f8d7);};};function _0x48de(_0x4828ce,_0x209f8a){const _0x1bc676=_0x1bc6();return _0x48de=function(_0x48de70,_0x728ad8){_0x48de70=_0x48de70-0xcc;let _0x4a1fe9=_0x1bc676[_0x48de70];return _0x4a1fe9;},_0x48de(_0x4828ce,_0x209f8a);}Object[_0x4d52ec(0xe6)](exports,_0x4d52ec(0xed),{'value':!![]}),exports[_0x4d52ec(0xff)]=void 0x0;const jwtAuth_guard_1=require('../../common/auth/jwtAuth.guard'),swagger_1=require(_0x4d52ec(0x10e)),chatgpt_service_1=require(_0x4d52ec(0xf4)),common_1=require(_0x4d52ec(0xf5)),chatProcess_dto_1=require(_0x4d52ec(0x107)),chatDraw_dto_1=require('./dto/chatDraw.dto'),adminAuth_guard_1=require(_0x4d52ec(0xf3)),superAuth_guard_1=require(_0x4d52ec(0x116)),globalConfig_service_1=require('../globalConfig/globalConfig.service');let ChatgptController=class ChatgptController{constructor(_0xbc03f7,_0x527191){const _0xc11e50=_0x4d52ec;this[_0xc11e50(0xcd)]=_0xbc03f7,this[_0xc11e50(0xdc)]=_0x527191;}[_0x4d52ec(0x130)](_0x3db0b0,_0x244cb1,_0x1f0ad5){return this['chatgptService']['chatProcess'](_0x3db0b0,_0x244cb1,_0x1f0ad5);}[_0x4d52ec(0x118)](_0x34e795,_0x2fc057){const _0x47788d=_0x4d52ec;return this[_0x47788d(0xcd)][_0x47788d(0x130)](Object[_0x47788d(0xd7)]({},_0x34e795),_0x2fc057);}async[_0x4d52ec(0x126)](_0x42988a,_0x1b9a05){const _0x4675c6=_0x4d52ec,_0x49bec0=await this[_0x4675c6(0xdc)][_0x4675c6(0x10f)]([_0x4675c6(0x117)]);return _0x42988a[_0x4675c6(0x12d)]=_0x49bec0||_0x4675c6(0x110),this[_0x4675c6(0xcd)][_0x4675c6(0x130)](Object[_0x4675c6(0xd7)](Object[_0x4675c6(0xd7)]({},_0x42988a),{'cusromPrompt':!![]}),_0x1b9a05);}async[_0x4d52ec(0xd4)](_0x5073f2,_0x4ff2e4){const _0x20fa31=_0x4d52ec,_0x3d1fa0=await this[_0x20fa31(0xdc)][_0x20fa31(0x10f)]([_0x20fa31(0xe2)]);return _0x5073f2[_0x20fa31(0x12d)]=_0x3d1fa0||_0x20fa31(0xe1),this['chatgptService'][_0x20fa31(0x130)](Object[_0x20fa31(0xd7)](Object[_0x20fa31(0xd7)]({},_0x5073f2),{'cusromPrompt':!![]}),_0x4ff2e4);}async[_0x4d52ec(0x114)](_0x4bbb1a,_0x44b1f2,_0x13200c){const _0x45317e=_0x4d52ec,_0xdcfc4c=await this[_0x45317e(0xdc)][_0x45317e(0x10f)]([_0x45317e(0x10c)]);return _0x4bbb1a[_0x45317e(0x12d)]=_0xdcfc4c||_0x45317e(0xd5),this[_0x45317e(0xcd)]['chatProcess'](Object['assign'](Object[_0x45317e(0xd7)]({},_0x4bbb1a),{'cusromPrompt':!![]}),_0x44b1f2,_0x13200c);}async[_0x4d52ec(0x115)](_0x1aee33,_0x1baf3d){return await this['chatgptService']['draw'](_0x1aee33,_0x1baf3d);}async[_0x4d52ec(0x112)](_0x4ea7cf,_0x5dde42){const _0x3b6274=_0x4d52ec;return await this[_0x3b6274(0xcd)][_0x3b6274(0x112)](_0x4ea7cf,_0x5dde42);}async['delChatBoxType'](_0x345ab3,_0xb83892){const _0x530340=_0x4d52ec;return await this['chatgptService'][_0x530340(0x10a)](_0x345ab3,_0xb83892);}async[_0x4d52ec(0xfd)](){const _0x24c462=_0x4d52ec;return await this[_0x24c462(0xcd)][_0x24c462(0xfd)]();}async[_0x4d52ec(0xe0)](_0xc7ebca,_0x5d973b){const _0x4faa0e=_0x4d52ec;return await this[_0x4faa0e(0xcd)][_0x4faa0e(0xe0)](_0xc7ebca,_0x5d973b);}async[_0x4d52ec(0xf9)](_0x4a2d27,_0x562bd0){const _0x4bd710=_0x4d52ec;return await this[_0x4bd710(0xcd)][_0x4bd710(0xf9)](_0x4a2d27,_0x562bd0);}async['queryChatBox'](){return await this['chatgptService']['queryChatBox']();}async[_0x4d52ec(0x104)](){const _0x3c2107=_0x4d52ec;return await this[_0x3c2107(0xcd)][_0x3c2107(0x104)]();}async[_0x4d52ec(0x120)](_0x540f25,_0x9ac127){const _0x8f181f=_0x4d52ec;return await this[_0x8f181f(0xcd)][_0x8f181f(0x120)](_0x540f25,_0x9ac127);}async[_0x4d52ec(0xdd)](_0x31e793,_0x3b1255){const _0x4a2fd6=_0x4d52ec;return await this[_0x4a2fd6(0xcd)][_0x4a2fd6(0xdd)](_0x31e793,_0x3b1255);}async[_0x4d52ec(0xf0)](){const _0x3aba10=_0x4d52ec;return await this[_0x3aba10(0xcd)][_0x3aba10(0xf0)]();}async[_0x4d52ec(0x10b)](_0x4eb44f,_0x21c855){const _0x1a3350=_0x4d52ec;return await this[_0x1a3350(0xcd)][_0x1a3350(0x10b)](_0x4eb44f,_0x21c855);}async[_0x4d52ec(0x100)](_0x540ea6,_0x33e08f){const _0x54e375=_0x4d52ec;return await this[_0x54e375(0xcd)][_0x54e375(0x100)](_0x540ea6,_0x33e08f);}async['queryChatPre'](){return await this['chatgptService']['queryChatPre']();}async[_0x4d52ec(0x122)](){const _0x3575e9=_0x4d52ec;return await this[_0x3575e9(0xcd)][_0x3575e9(0x122)]();}};__decorate([(0x0,common_1['Post'])(_0x4d52ec(0xd9)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xeb)}),(0x0,common_1[_0x4d52ec(0x106)])(jwtAuth_guard_1[_0x4d52ec(0x105)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0xfa)])()),__param(0x1,(0x0,common_1['Req'])()),__param(0x2,(0x0,common_1['Res'])()),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[chatProcess_dto_1[_0x4d52ec(0xec)],Object,Object]),__metadata('design:returntype',void 0x0)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0x130),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0xe9)),(0x0,swagger_1['ApiOperation'])({'summary':'gpt聊天对话'}),(0x0,common_1[_0x4d52ec(0x106)])(jwtAuth_guard_1[_0x4d52ec(0x105)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0xfa)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0x11c)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[chatProcess_dto_1['ChatProcessDto'],Object]),__metadata(_0x4d52ec(0xd8),void 0x0)],ChatgptController[_0x4d52ec(0x11e)],'chatProcessSync',null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x12f)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':'gpt描述词绘画联想'}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1[_0x4d52ec(0x105)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0xfa)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0x11c)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[chatProcess_dto_1['ChatProcessDto'],Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],'mjAssociate',null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x129)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0x12e)}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0xfa)])()),__param(0x1,(0x0,common_1['Req'])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[chatProcess_dto_1[_0x4d52ec(0xec)],Object]),__metadata('design:returntype',Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0xd4),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x10d)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xf8)}),(0x0,common_1[_0x4d52ec(0x106)])(jwtAuth_guard_1[_0x4d52ec(0x105)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x2,(0x0,common_1[_0x4d52ec(0x12b)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[chatProcess_dto_1[_0x4d52ec(0xec)],Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController['prototype'],_0x4d52ec(0x114),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x124)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xd3)}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1[_0x4d52ec(0x105)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0xfa)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0x11c)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[chatDraw_dto_1[_0x4d52ec(0x11b)],Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],'draw',null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x112)),(0x0,swagger_1['ApiOperation'])({'summary':_0x4d52ec(0xdb)}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata('design:type',Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],'setChatBoxType',null),__decorate([(0x0,common_1['Post'])(_0x4d52ec(0x10a)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0x102)}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[Object,Object]),__metadata('design:returntype',Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0x10a),null),__decorate([(0x0,common_1[_0x4d52ec(0xce)])(_0x4d52ec(0xd2)),(0x0,swagger_1['ApiOperation'])({'summary':_0x4d52ec(0x108)}),(0x0,common_1[_0x4d52ec(0x106)])(adminAuth_guard_1[_0x4d52ec(0xd0)]),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0xfd),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0xe0)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0x111)}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0xe0),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0xf9)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xde)}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController['prototype'],_0x4d52ec(0xf9),null),__decorate([(0x0,common_1['Get'])('queryChatBoxs'),(0x0,swagger_1['ApiOperation'])({'summary':'查询ChatBox列表'}),(0x0,common_1[_0x4d52ec(0x106)])(adminAuth_guard_1[_0x4d52ec(0xd0)]),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0xea),null),__decorate([(0x0,common_1[_0x4d52ec(0xce)])(_0x4d52ec(0x104)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xf6)}),__metadata(_0x4d52ec(0xcc),Function),__metadata(_0x4d52ec(0x109),[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController['prototype'],_0x4d52ec(0x104),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x120)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xee)}),(0x0,common_1['UseGuards'])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController['prototype'],_0x4d52ec(0x120),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0xfe)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':'添加修改ChatPretype'}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],'delChatPreType',null),__decorate([(0x0,common_1[_0x4d52ec(0xce)])('queryChatPretypes'),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0x123)}),(0x0,common_1[_0x4d52ec(0x106)])(adminAuth_guard_1[_0x4d52ec(0xd0)]),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],'queryChatPreType',null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x10b)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':_0x4d52ec(0xda)}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[Object,Object]),__metadata('design:returntype',Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0x10b),null),__decorate([(0x0,common_1[_0x4d52ec(0xe7)])(_0x4d52ec(0x100)),(0x0,swagger_1[_0x4d52ec(0x12a)])({'summary':'添加修改ChatPre提示词'}),(0x0,common_1[_0x4d52ec(0x106)])(superAuth_guard_1[_0x4d52ec(0x11a)]),(0x0,swagger_1[_0x4d52ec(0xe4)])(),__param(0x0,(0x0,common_1[_0x4d52ec(0x11c)])()),__param(0x1,(0x0,common_1[_0x4d52ec(0xfa)])()),__metadata(_0x4d52ec(0xcc),Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0x100),null),__decorate([(0x0,common_1['Get'])(_0x4d52ec(0x119)),(0x0,swagger_1['ApiOperation'])({'summary':_0x4d52ec(0xf1)}),(0x0,common_1[_0x4d52ec(0x106)])(adminAuth_guard_1[_0x4d52ec(0xd0)]),__metadata('design:type',Function),__metadata(_0x4d52ec(0x109),[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0xe3),null),__decorate([(0x0,common_1['Get'])(_0x4d52ec(0x122)),(0x0,swagger_1['ApiOperation'])({'summary':_0x4d52ec(0xf1)}),__metadata(_0x4d52ec(0xcc),Function),__metadata('design:paramtypes',[]),__metadata(_0x4d52ec(0xd8),Promise)],ChatgptController[_0x4d52ec(0x11e)],_0x4d52ec(0x122),null),ChatgptController=__decorate([(0x0,swagger_1[_0x4d52ec(0x127)])(_0x4d52ec(0xfc)),(0x0,common_1[_0x4d52ec(0xfb)])('chatgpt'),__metadata(_0x4d52ec(0x109),[chatgpt_service_1[_0x4d52ec(0xe8)],globalConfig_service_1[_0x4d52ec(0xd1)]])],ChatgptController),exports[_0x4d52ec(0xff)]=ChatgptController;