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

1 line
19 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 _0xd9f7e0=_0x23e2;(function(_0x590565,_0x39555c){const _0x1bbbc3=_0x23e2,_0x2ae0e2=_0x590565();while(!![]){try{const _0x1ca550=parseInt(_0x1bbbc3(0x1bc))/0x1+-parseInt(_0x1bbbc3(0x1f4))/0x2+parseInt(_0x1bbbc3(0x1e6))/0x3+-parseInt(_0x1bbbc3(0x1e0))/0x4*(-parseInt(_0x1bbbc3(0x1b1))/0x5)+-parseInt(_0x1bbbc3(0x1ec))/0x6*(-parseInt(_0x1bbbc3(0x1bb))/0x7)+-parseInt(_0x1bbbc3(0x1dc))/0x8*(parseInt(_0x1bbbc3(0x204))/0x9)+parseInt(_0x1bbbc3(0x1ff))/0xa;if(_0x1ca550===_0x39555c)break;else _0x2ae0e2['push'](_0x2ae0e2['shift']());}catch(_0x95419e){_0x2ae0e2['push'](_0x2ae0e2['shift']());}}}(_0x4144,0xeb7c5));var __decorate=this&&this[_0xd9f7e0(0x1c0)]||function(_0x2370ca,_0x5984a9,_0x5bd795,_0x19dffd){const _0x553ff3=_0xd9f7e0;var _0x38fd17=arguments['length'],_0x4661ac=_0x38fd17<0x3?_0x5984a9:_0x19dffd===null?_0x19dffd=Object[_0x553ff3(0x1fd)](_0x5984a9,_0x5bd795):_0x19dffd,_0x74a20e;if(typeof Reflect===_0x553ff3(0x1a7)&&typeof Reflect[_0x553ff3(0x1ce)]===_0x553ff3(0x1a8))_0x4661ac=Reflect[_0x553ff3(0x1ce)](_0x2370ca,_0x5984a9,_0x5bd795,_0x19dffd);else{for(var _0x3d7a30=_0x2370ca[_0x553ff3(0x1e5)]-0x1;_0x3d7a30>=0x0;_0x3d7a30--)if(_0x74a20e=_0x2370ca[_0x3d7a30])_0x4661ac=(_0x38fd17<0x3?_0x74a20e(_0x4661ac):_0x38fd17>0x3?_0x74a20e(_0x5984a9,_0x5bd795,_0x4661ac):_0x74a20e(_0x5984a9,_0x5bd795))||_0x4661ac;}return _0x38fd17>0x3&&_0x4661ac&&Object[_0x553ff3(0x1af)](_0x5984a9,_0x5bd795,_0x4661ac),_0x4661ac;},__metadata=this&&this[_0xd9f7e0(0x1b6)]||function(_0x57a306,_0x2fb72f){const _0x406fbe=_0xd9f7e0;if(typeof Reflect===_0x406fbe(0x1a7)&&typeof Reflect[_0x406fbe(0x1c5)]===_0x406fbe(0x1a8))return Reflect['metadata'](_0x57a306,_0x2fb72f);},__param=this&&this['__param']||function(_0x549d87,_0x79f720){return function(_0x67d4a9,_0x2ede51){_0x79f720(_0x67d4a9,_0x2ede51,_0x549d87);};};Object[_0xd9f7e0(0x1af)](exports,'__esModule',{'value':!![]}),exports[_0xd9f7e0(0x1ae)]=void 0x0;const jwtAuth_guard_1=require(_0xd9f7e0(0x1e9)),swagger_1=require(_0xd9f7e0(0x1f6)),chatgpt_service_1=require(_0xd9f7e0(0x1cd)),common_1=require(_0xd9f7e0(0x1d1)),chatProcess_dto_1=require(_0xd9f7e0(0x1ad)),chatDraw_dto_1=require(_0xd9f7e0(0x1dd)),adminAuth_guard_1=require(_0xd9f7e0(0x1f1)),superAuth_guard_1=require(_0xd9f7e0(0x1f2)),globalConfig_service_1=require(_0xd9f7e0(0x205));let ChatgptController=class ChatgptController{constructor(_0x220485,_0x3ea0b6){const _0x2e4097=_0xd9f7e0;this[_0x2e4097(0x1e7)]=_0x220485,this[_0x2e4097(0x1b9)]=_0x3ea0b6;}[_0xd9f7e0(0x1cf)](_0x5f535f,_0x4b7b2b,_0x537a95){const _0x33f791=_0xd9f7e0;return this[_0x33f791(0x1e7)]['chatProcess'](_0x5f535f,_0x4b7b2b,_0x537a95);}[_0xd9f7e0(0x1de)](_0x23ed2a,_0x232f18){const _0x4645ec=_0xd9f7e0;return this[_0x4645ec(0x1e7)]['chatProcess'](Object['assign']({},_0x23ed2a),_0x232f18);}async[_0xd9f7e0(0x1c7)](_0x3192d3,_0x56fe5b){const _0x57000b=_0xd9f7e0,_0x1e6987=await this[_0x57000b(0x1b9)]['getConfigs']([_0x57000b(0x1f3)]);return _0x3192d3[_0x57000b(0x1ca)]=_0x1e6987||_0x57000b(0x1eb),this['chatgptService']['chatProcess'](Object[_0x57000b(0x1d0)](Object[_0x57000b(0x1d0)]({},_0x3192d3),{'cusromPrompt':!![]}),_0x56fe5b);}async[_0xd9f7e0(0x1a6)](_0x556cc6,_0x24901f){const _0x15c424=_0xd9f7e0,_0x507b21=await this['globalConfigService'][_0x15c424(0x1be)]([_0x15c424(0x1df)]);return _0x556cc6[_0x15c424(0x1ca)]=_0x507b21||_0x15c424(0x1d6),this['chatgptService']['chatProcess'](Object[_0x15c424(0x1d0)](Object[_0x15c424(0x1d0)]({},_0x556cc6),{'cusromPrompt':!![]}),_0x24901f);}async[_0xd9f7e0(0x1d4)](_0x5b0c6c,_0x30d650,_0x25b282){const _0x299d37=_0xd9f7e0,_0x30d220=await this[_0x299d37(0x1b9)][_0x299d37(0x1be)](['mindCustomPrompt']);return _0x5b0c6c['systemMessage']=_0x30d220||_0x299d37(0x1ba),this['chatgptService']['chatProcess'](Object[_0x299d37(0x1d0)](Object[_0x299d37(0x1d0)]({},_0x5b0c6c),{'cusromPrompt':!![]}),_0x30d650,_0x25b282);}async[_0xd9f7e0(0x1d3)](_0x58b5f5,_0x179460){const _0xb3bc92=_0xd9f7e0;return await this[_0xb3bc92(0x1e7)][_0xb3bc92(0x1d3)](_0x58b5f5,_0x179460);}async[_0xd9f7e0(0x1d8)](_0x5f51f0,_0x40079a){const _0x5b0c5a=_0xd9f7e0;return await this['chatgptService'][_0x5b0c5a(0x1d8)](_0x5f51f0,_0x40079a);}async[_0xd9f7e0(0x1ee)](_0x1fe1aa,_0x457da0){const _0xe96f26=_0xd9f7e0;return await this[_0xe96f26(0x1e7)]['delChatBoxType'](_0x1fe1aa,_0x457da0);}async[_0xd9f7e0(0x1d7)](){const _0x19e586=_0xd9f7e0;return await this[_0x19e586(0x1e7)][_0x19e586(0x1d7)]();}async[_0xd9f7e0(0x1fb)](_0x11b913,_0x211127){const _0x581975=_0xd9f7e0;return await this[_0x581975(0x1e7)][_0x581975(0x1fb)](_0x11b913,_0x211127);}async[_0xd9f7e0(0x1d2)](_0x5aa4ee,_0x4facd6){const _0x26e593=_0xd9f7e0;return await this['chatgptService'][_0x26e593(0x1d2)](_0x5aa4ee,_0x4facd6);}async['queryChatBox'](){const _0x3d75a9=_0xd9f7e0;return await this[_0x3d75a9(0x1e7)]['queryChatBox']();}async[_0xd9f7e0(0x1fc)](){const _0x5b1c6f=_0xd9f7e0;return await this[_0x5b1c6f(0x1e7)][_0x5b1c6f(0x1fc)]();}async[_0xd9f7e0(0x1b5)](_0x152008,_0xd52d06){const _0xea028b=_0xd9f7e0;return await this[_0xea028b(0x1e7)][_0xea028b(0x1b5)](_0x152008,_0xd52d06);}async[_0xd9f7e0(0x1b0)](_0x19f77a,_0x1f3837){const _0x49befd=_0xd9f7e0;return await this[_0x49befd(0x1e7)][_0x49befd(0x1b0)](_0x19f77a,_0x1f3837);}async[_0xd9f7e0(0x1aa)](){const _0x39018d=_0xd9f7e0;return await this['chatgptService'][_0x39018d(0x1aa)]();}async[_0xd9f7e0(0x1c2)](_0x2a4db6,_0x2a21c1){const _0xda5b33=_0xd9f7e0;return await this[_0xda5b33(0x1e7)][_0xda5b33(0x1c2)](_0x2a4db6,_0x2a21c1);}async['delChatPre'](_0x54ca81,_0x561a5e){const _0x1bc42d=_0xd9f7e0;return await this[_0x1bc42d(0x1e7)]['delChatPre'](_0x54ca81,_0x561a5e);}async[_0xd9f7e0(0x1e3)](){const _0x4fe69e=_0xd9f7e0;return await this[_0x4fe69e(0x1e7)]['queryChatPre']();}async['queryChatPreList'](){const _0x5498e6=_0xd9f7e0;return await this[_0x5498e6(0x1e7)]['queryChatPreList']();}};function _0x4144(){const _0x55ff15=['design:paramtypes','查询ChatBox分类加详细','../../common/auth/adminAuth.guard','../../common/auth/superAuth.guard','mjCustomLianxiangPrompt','186380WkvyTm','Req','@nestjs/swagger','ApiOperation','queryChatPreList','delChatPre','design:returntype','setChatBox','queryChatBoxFrontend','getOwnPropertyDescriptor','gpt描述词绘画联想','5769530ERZhfX','mj-fy','添加修改ChatPre','queryChatBoxTypes','prototype','36UETkTx','../globalConfig/globalConfig.service','Body','mjFanyi','object','function','AdminAuthGuard','queryChatPreType','ApiTags','chatgpt','./dto/chatProcess.dto','ChatgptController','defineProperty','delChatPreType','5rnITpa','gpt绘画','chat-mind','Controller','setChatPreType','__metadata','gpt描述词绘画翻译','查询ChatBoxType','globalConfigService','我希望你使用markdown格式回答我得问题、我的需求是得到一份markdown格式的大纲、尽量做的精细、层级多一点、不管我问你什么、都需要您回复我一个大纲出来、我想使用大纲做思维导图、除了大纲之外、不要无关内容和总结。','35oKSMQt','115703lwdLMB','ChatgptService','getConfigs','Post','__decorate','SuperAuthGuard','setChatPre','添加修改分类类型','添加修改预设分类类型','metadata','Res','mjAssociate','ApiBearerAuth','chat-sync','systemMessage','添加修改ChatPretype','查询ChatPre列表','./chatgpt.service','decorate','chatProcess','assign','@nestjs/common','delChatBox','draw','chatmind','queryChatBox','接下来我会给你一些内容、我希望你帮我翻译成英文、不管我给你任何语言、你都回复我英文、如果给你了英文、依然回复我更加优化的英文、并且期望你不需要做任何多余的解释、给我英文即可、不要加任何东西、我只需要英文!','queryChatBoxType','setChatBoxType','JwtAuthGuard','gpt聊天对话','ChatProcessDto','3237200nehjnS','./dto/chatDraw.dto','chatProcessSync','mjCustomFanyiPrompt','409164hjUxJO','queryChatBoxs','chat-draw','queryChatPre','UseGuards','length','4493721ElqSQS','chatgptService','GlobalConfigService','../../common/auth/jwtAuth.guard','design:type','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生成、最终把我给你的提示变成一整段连续不分开的完整内容并且只需要用英文回复您的联想、一定不要回复别内容、包括解释、我只需要纯粹的内容。','460182jZIHXF','Get','delChatBoxType'];_0x4144=function(){return _0x55ff15;};return _0x4144();}function _0x23e2(_0x447427,_0x3e42d7){const _0x4144e1=_0x4144();return _0x23e2=function(_0x23e209,_0x42f70f){_0x23e209=_0x23e209-0x1a5;let _0x1cd716=_0x4144e1[_0x23e209];return _0x1cd716;},_0x23e2(_0x447427,_0x3e42d7);}__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])('chat-process'),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1da)}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1[_0xd9f7e0(0x1d9)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x2,(0x0,common_1[_0xd9f7e0(0x1c6)])()),__metadata('design:type',Function),__metadata(_0xd9f7e0(0x1ef),[chatProcess_dto_1[_0xd9f7e0(0x1db)],Object,Object]),__metadata('design:returntype',void 0x0)],ChatgptController['prototype'],'chatProcess',null),__decorate([(0x0,common_1['Post'])(_0xd9f7e0(0x1c9)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1da)}),(0x0,common_1['UseGuards'])(jwtAuth_guard_1[_0xd9f7e0(0x1d9)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1['Req'])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[chatProcess_dto_1[_0xd9f7e0(0x1db)],Object]),__metadata(_0xd9f7e0(0x1fa),void 0x0)],ChatgptController['prototype'],_0xd9f7e0(0x1de),null),__decorate([(0x0,common_1['Post'])('mj-associate'),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1fe)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(jwtAuth_guard_1[_0xd9f7e0(0x1d9)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__metadata('design:type',Function),__metadata('design:paramtypes',[chatProcess_dto_1[_0xd9f7e0(0x1db)],Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1c7),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])(_0xd9f7e0(0x200)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1b7)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(jwtAuth_guard_1[_0xd9f7e0(0x1d9)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__param(0x1,(0x0,common_1['Req'])()),__metadata('design:type',Function),__metadata(_0xd9f7e0(0x1ef),[chatProcess_dto_1[_0xd9f7e0(0x1db)],Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],'mjFanyi',null),__decorate([(0x0,common_1['Post'])(_0xd9f7e0(0x1b3)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'mind思维导图提示'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1['Req'])()),__param(0x2,(0x0,common_1['Res'])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[chatProcess_dto_1['ChatProcessDto'],Object,Object]),__metadata('design:returntype',Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1d4),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])(_0xd9f7e0(0x1e2)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1b2)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(jwtAuth_guard_1[_0xd9f7e0(0x1d9)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[chatDraw_dto_1['ChatDrawDto'],Object]),__metadata('design:returntype',Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1d3),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])(_0xd9f7e0(0x1d8)),(0x0,swagger_1['ApiOperation'])({'summary':_0xd9f7e0(0x1c3)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1d8),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])('delChatBoxType'),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'添加修改ChatBoxType'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata('design:paramtypes',[Object,Object]),__metadata('design:returntype',Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1ee),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])(_0xd9f7e0(0x202)),(0x0,swagger_1['ApiOperation'])({'summary':_0xd9f7e0(0x1b8)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(adminAuth_guard_1['AdminAuthGuard']),__metadata('design:type',Function),__metadata(_0xd9f7e0(0x1ef),[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],_0xd9f7e0(0x1d7),null),__decorate([(0x0,common_1['Post'])('setChatBox'),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'添加修改ChatBox'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1fb),null),__decorate([(0x0,common_1['Post'])(_0xd9f7e0(0x1d2)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'添加修改ChatBox提示词'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata('design:type',Function),__metadata(_0xd9f7e0(0x1ef),[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],'delChatBox',null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])(_0xd9f7e0(0x1e1)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'查询ChatBox列表'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(adminAuth_guard_1[_0xd9f7e0(0x1a9)]),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],_0xd9f7e0(0x1d5),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])(_0xd9f7e0(0x1fc)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1f0)}),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],'queryChatBoxFrontend',null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])(_0xd9f7e0(0x1b5)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1c4)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],'setChatPreType',null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])('delChatPretype'),(0x0,swagger_1['ApiOperation'])({'summary':_0xd9f7e0(0x1cb)}),(0x0,common_1[_0xd9f7e0(0x1e4)])(superAuth_guard_1[_0xd9f7e0(0x1c1)]),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[Object,Object]),__metadata('design:returntype',Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1b0),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])('queryChatPretypes'),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'查询ChatPretype'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(adminAuth_guard_1[_0xd9f7e0(0x1a9)]),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],'queryChatPreType',null),__decorate([(0x0,common_1['Post'])(_0xd9f7e0(0x1c2)),(0x0,swagger_1['ApiOperation'])({'summary':_0xd9f7e0(0x201)}),(0x0,common_1['UseGuards'])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1[_0xd9f7e0(0x1c8)])(),__param(0x0,(0x0,common_1[_0xd9f7e0(0x1f5)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1c2),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1bf)])(_0xd9f7e0(0x1f9)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':'添加修改ChatPre提示词'}),(0x0,common_1['UseGuards'])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0xd9f7e0(0x1a5)])()),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[Object,Object]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1f9),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])('queryChatPres'),(0x0,swagger_1['ApiOperation'])({'summary':'查询ChatPre列表'}),(0x0,common_1[_0xd9f7e0(0x1e4)])(adminAuth_guard_1['AdminAuthGuard']),__metadata(_0xd9f7e0(0x1ea),Function),__metadata('design:paramtypes',[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController['prototype'],_0xd9f7e0(0x1e3),null),__decorate([(0x0,common_1[_0xd9f7e0(0x1ed)])(_0xd9f7e0(0x1f8)),(0x0,swagger_1[_0xd9f7e0(0x1f7)])({'summary':_0xd9f7e0(0x1cc)}),__metadata(_0xd9f7e0(0x1ea),Function),__metadata(_0xd9f7e0(0x1ef),[]),__metadata(_0xd9f7e0(0x1fa),Promise)],ChatgptController[_0xd9f7e0(0x203)],_0xd9f7e0(0x1f8),null),ChatgptController=__decorate([(0x0,swagger_1[_0xd9f7e0(0x1ab)])('chatgpt'),(0x0,common_1[_0xd9f7e0(0x1b4)])(_0xd9f7e0(0x1ac)),__metadata('design:paramtypes',[chatgpt_service_1[_0xd9f7e0(0x1bd)],globalConfig_service_1[_0xd9f7e0(0x1e8)]])],ChatgptController),exports[_0xd9f7e0(0x1ae)]=ChatgptController;