YiAi/YiAiQuickDeploy/dist/modules/chatgpt/chatgpt.controller.js
2024-02-05 23:18:50 +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 _0x5d1359=_0x5e2c;(function(_0x50db99,_0x221dbc){const _0x3ef6c3=_0x5e2c,_0x510ef6=_0x50db99();while(!![]){try{const _0x12c855=parseInt(_0x3ef6c3(0x9b))/0x1+parseInt(_0x3ef6c3(0xe4))/0x2+-parseInt(_0x3ef6c3(0xa2))/0x3+parseInt(_0x3ef6c3(0xea))/0x4+parseInt(_0x3ef6c3(0xe6))/0x5*(parseInt(_0x3ef6c3(0xc7))/0x6)+-parseInt(_0x3ef6c3(0xd9))/0x7*(-parseInt(_0x3ef6c3(0xf4))/0x8)+-parseInt(_0x3ef6c3(0x99))/0x9*(parseInt(_0x3ef6c3(0xbc))/0xa);if(_0x12c855===_0x221dbc)break;else _0x510ef6['push'](_0x510ef6['shift']());}catch(_0x5c1943){_0x510ef6['push'](_0x510ef6['shift']());}}}(_0x4f4c,0x469e9));var __decorate=this&&this[_0x5d1359(0xc9)]||function(_0x26b413,_0x237e1b,_0x1d1f35,_0x19fd8f){const _0x39219a=_0x5d1359;var _0x5620b2=arguments[_0x39219a(0xb6)],_0x5f28bc=_0x5620b2<0x3?_0x237e1b:_0x19fd8f===null?_0x19fd8f=Object[_0x39219a(0xe0)](_0x237e1b,_0x1d1f35):_0x19fd8f,_0x59ac15;if(typeof Reflect===_0x39219a(0x9e)&&typeof Reflect['decorate']===_0x39219a(0xee))_0x5f28bc=Reflect[_0x39219a(0xc2)](_0x26b413,_0x237e1b,_0x1d1f35,_0x19fd8f);else{for(var _0x3b838d=_0x26b413[_0x39219a(0xb6)]-0x1;_0x3b838d>=0x0;_0x3b838d--)if(_0x59ac15=_0x26b413[_0x3b838d])_0x5f28bc=(_0x5620b2<0x3?_0x59ac15(_0x5f28bc):_0x5620b2>0x3?_0x59ac15(_0x237e1b,_0x1d1f35,_0x5f28bc):_0x59ac15(_0x237e1b,_0x1d1f35))||_0x5f28bc;}return _0x5620b2>0x3&&_0x5f28bc&&Object[_0x39219a(0xad)](_0x237e1b,_0x1d1f35,_0x5f28bc),_0x5f28bc;},__metadata=this&&this[_0x5d1359(0xa1)]||function(_0x299eaa,_0x4b210a){const _0x5e1e97=_0x5d1359;if(typeof Reflect===_0x5e1e97(0x9e)&&typeof Reflect[_0x5e1e97(0xf3)]==='function')return Reflect[_0x5e1e97(0xf3)](_0x299eaa,_0x4b210a);},__param=this&&this['__param']||function(_0x1d5d3a,_0x27122e){return function(_0x551332,_0xfb240b){_0x27122e(_0x551332,_0xfb240b,_0x1d5d3a);};};Object[_0x5d1359(0xad)](exports,_0x5d1359(0xbb),{'value':!![]}),exports[_0x5d1359(0x97)]=void 0x0;function _0x4f4c(){const _0x397728=['draw','globalConfigService','./dto/chatDraw.dto','接下来我会给你一些内容、我希望你帮我翻译成英文、不管我给你任何语言、你都回复我英文、如果给你了英文、依然回复我更加优化的英文、并且期望你不需要做任何多余的解释、给我英文即可、不要加任何东西、我只需要英文!','Get','查询ChatBox列表','setChatBox','chat-draw','defineProperty','查询ChatBox分类加详细','queryChatPretypes','mindCustomPrompt','../../common/auth/superAuth.guard','ChatgptService','chatgpt','我希望你使用markdown格式回答我得问题、我的需求是得到一份markdown格式的大纲、尽量做的精细、层级多一点、不管我问你什么、都需要您回复我一个大纲出来、我想使用大纲做思维导图、除了大纲之外、不要无关内容和总结。','添加修改ChatBox提示词','length','Req','添加修改分类类型','delChatPre','UseGuards','__esModule','2790920czmYhk','chatmind','queryChatBoxType','ApiBearerAuth','systemMessage','../../common/auth/adminAuth.guard','decorate','添加修改预设分类类型','delChatPreType','添加修改ChatPre提示词','查询ChatPre列表','160452TkbSgT','ChatProcessDto','__decorate','delChatBox','Controller','chatProcessSync','prototype','mind思维导图提示','ApiTags','assign','mjAssociate','design:type','design:returntype','chat-sync','delChatBoxType','GlobalConfigService','gpt描述词绘画翻译','查询ChatBoxType','2786gUVlMB','Post','./chatgpt.service','setChatPre','添加修改ChatBox','mjCustomFanyiPrompt','gpt聊天对话','getOwnPropertyDescriptor','查询ChatPretype','JwtAuthGuard','mj-fy','211946lWGbGt','design:paramtypes','85zsvyjE','Res','setChatPreType','ApiOperation','1317588wVAwGd','ChatDrawDto','setChatBoxType','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生成、最终把我给你的提示变成一整段连续不分开的完整内容并且只需要用英文回复您的联想、一定不要回复别内容、包括解释、我只需要纯粹的内容。','function','chat-process','SuperAuthGuard','queryChatPreType','queryChatBox','metadata','3656uwONua','添加修改ChatPre','mjFanyi','queryChatPre','chatProcess','mj-associate','queryChatBoxFrontend','./dto/chatProcess.dto','添加修改ChatPretype','ChatgptController','getConfigs','9ruyUnw','mjCustomLianxiangPrompt','23432ttthpS','gpt描述词绘画联想','AdminAuthGuard','object','chatgptService','queryChatPreList','__metadata','1580859nqFMsx','Body','../globalConfig/globalConfig.service'];_0x4f4c=function(){return _0x397728;};return _0x4f4c();}function _0x5e2c(_0x43caaf,_0x42ee7a){const _0x4f4c3b=_0x4f4c();return _0x5e2c=function(_0x5e2cf3,_0x283776){_0x5e2cf3=_0x5e2cf3-0x8f;let _0x40512e=_0x4f4c3b[_0x5e2cf3];return _0x40512e;},_0x5e2c(_0x43caaf,_0x42ee7a);}const jwtAuth_guard_1=require('../../common/auth/jwtAuth.guard'),swagger_1=require('@nestjs/swagger'),chatgpt_service_1=require(_0x5d1359(0xdb)),common_1=require('@nestjs/common'),chatProcess_dto_1=require(_0x5d1359(0x95)),chatDraw_dto_1=require(_0x5d1359(0xa7)),adminAuth_guard_1=require(_0x5d1359(0xc1)),superAuth_guard_1=require(_0x5d1359(0xb1)),globalConfig_service_1=require(_0x5d1359(0xa4));let ChatgptController=class ChatgptController{constructor(_0x2b6fac,_0x177500){const _0x30de9b=_0x5d1359;this[_0x30de9b(0x9f)]=_0x2b6fac,this[_0x30de9b(0xa6)]=_0x177500;}[_0x5d1359(0x92)](_0xa77053,_0x5894c8,_0x596a6c){const _0x2b523f=_0x5d1359;return this[_0x2b523f(0x9f)][_0x2b523f(0x92)](_0xa77053,_0x5894c8,_0x596a6c);}[_0x5d1359(0xcc)](_0x5614d7,_0x8cb962){const _0x4291e3=_0x5d1359;return this[_0x4291e3(0x9f)][_0x4291e3(0x92)](Object[_0x4291e3(0xd0)]({},_0x5614d7),_0x8cb962);}async[_0x5d1359(0xd1)](_0x4c7260,_0x290a2b){const _0x11b694=_0x5d1359,_0x21872b=await this[_0x11b694(0xa6)][_0x11b694(0x98)]([_0x11b694(0x9a)]);return _0x4c7260['systemMessage']=_0x21872b||_0x11b694(0xed),this[_0x11b694(0x9f)][_0x11b694(0x92)](Object[_0x11b694(0xd0)](Object['assign']({},_0x4c7260),{'cusromPrompt':!![]}),_0x290a2b);}async[_0x5d1359(0x90)](_0xdbf55c,_0x19e123){const _0x4daa53=_0x5d1359,_0x58caea=await this[_0x4daa53(0xa6)][_0x4daa53(0x98)]([_0x4daa53(0xde)]);return _0xdbf55c['systemMessage']=_0x58caea||_0x4daa53(0xa8),this['chatgptService']['chatProcess'](Object[_0x4daa53(0xd0)](Object[_0x4daa53(0xd0)]({},_0xdbf55c),{'cusromPrompt':!![]}),_0x19e123);}async[_0x5d1359(0xbd)](_0x19b0f1,_0x4e101d,_0x4b9239){const _0x3169ef=_0x5d1359,_0x4fede1=await this[_0x3169ef(0xa6)][_0x3169ef(0x98)]([_0x3169ef(0xb0)]);return _0x19b0f1[_0x3169ef(0xc0)]=_0x4fede1||_0x3169ef(0xb4),this['chatgptService'][_0x3169ef(0x92)](Object[_0x3169ef(0xd0)](Object[_0x3169ef(0xd0)]({},_0x19b0f1),{'cusromPrompt':!![]}),_0x4e101d,_0x4b9239);}async[_0x5d1359(0xa5)](_0x1da7f5,_0x1eac36){const _0x367790=_0x5d1359;return await this[_0x367790(0x9f)][_0x367790(0xa5)](_0x1da7f5,_0x1eac36);}async[_0x5d1359(0xec)](_0x1f7394,_0x135f55){const _0x3a27d9=_0x5d1359;return await this[_0x3a27d9(0x9f)][_0x3a27d9(0xec)](_0x1f7394,_0x135f55);}async[_0x5d1359(0xd5)](_0x52947a,_0x17f3a1){const _0x1095e6=_0x5d1359;return await this[_0x1095e6(0x9f)][_0x1095e6(0xd5)](_0x52947a,_0x17f3a1);}async[_0x5d1359(0xbe)](){const _0x4b89a5=_0x5d1359;return await this['chatgptService'][_0x4b89a5(0xbe)]();}async[_0x5d1359(0xab)](_0x4125dd,_0x42b775){const _0x43c63c=_0x5d1359;return await this['chatgptService'][_0x43c63c(0xab)](_0x4125dd,_0x42b775);}async[_0x5d1359(0xca)](_0xaf1669,_0x1f6458){const _0x50fbbf=_0x5d1359;return await this[_0x50fbbf(0x9f)]['delChatBox'](_0xaf1669,_0x1f6458);}async[_0x5d1359(0xf2)](){const _0x4eee9d=_0x5d1359;return await this[_0x4eee9d(0x9f)]['queryChatBox']();}async[_0x5d1359(0x94)](){const _0x5854fb=_0x5d1359;return await this['chatgptService'][_0x5854fb(0x94)]();}async[_0x5d1359(0xe8)](_0x2340e7,_0x11ab81){const _0x3f69f2=_0x5d1359;return await this[_0x3f69f2(0x9f)][_0x3f69f2(0xe8)](_0x2340e7,_0x11ab81);}async[_0x5d1359(0xc4)](_0x2ac54e,_0x316841){const _0x123ab9=_0x5d1359;return await this[_0x123ab9(0x9f)]['delChatPreType'](_0x2ac54e,_0x316841);}async[_0x5d1359(0xf1)](){const _0x4640e3=_0x5d1359;return await this[_0x4640e3(0x9f)][_0x4640e3(0xf1)]();}async[_0x5d1359(0xdc)](_0x246dcd,_0x34652d){const _0x273ebe=_0x5d1359;return await this[_0x273ebe(0x9f)][_0x273ebe(0xdc)](_0x246dcd,_0x34652d);}async[_0x5d1359(0xb9)](_0x4f3a6d,_0x4fe622){return await this['chatgptService']['delChatPre'](_0x4f3a6d,_0x4fe622);}async[_0x5d1359(0x91)](){const _0x4daded=_0x5d1359;return await this[_0x4daded(0x9f)][_0x4daded(0x91)]();}async[_0x5d1359(0xa0)](){const _0x853f94=_0x5d1359;return await this[_0x853f94(0x9f)][_0x853f94(0xa0)]();}};__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xef)),(0x0,swagger_1['ApiOperation'])({'summary':'gpt聊天对话'}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xa3)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x2,(0x0,common_1[_0x5d1359(0xe7)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[chatProcess_dto_1[_0x5d1359(0xc8)],Object,Object]),__metadata(_0x5d1359(0xd3),void 0x0)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0x92),null),__decorate([(0x0,common_1['Post'])(_0x5d1359(0xd4)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xdf)}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x5d1359(0xa3)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xb7)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[chatProcess_dto_1[_0x5d1359(0xc8)],Object]),__metadata('design:returntype',void 0x0)],ChatgptController['prototype'],_0x5d1359(0xcc),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0x93)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0x9c)}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1[_0x5d1359(0xe2)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x5d1359(0xa3)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xb7)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[chatProcess_dto_1['ChatProcessDto'],Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xd1),null),__decorate([(0x0,common_1['Post'])(_0x5d1359(0xe3)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xd7)}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x5d1359(0xb7)])()),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[chatProcess_dto_1[_0x5d1359(0xc8)],Object]),__metadata('design:returntype',Promise)],ChatgptController['prototype'],_0x5d1359(0x90),null),__decorate([(0x0,common_1['Post'])('chat-mind'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xce)}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1[_0x5d1359(0xe2)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xa3)])()),__param(0x1,(0x0,common_1['Req'])()),__param(0x2,(0x0,common_1['Res'])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[chatProcess_dto_1[_0x5d1359(0xc8)],Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController['prototype'],'chatmind',null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xac)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':'gpt绘画'}),(0x0,common_1[_0x5d1359(0xba)])(jwtAuth_guard_1['JwtAuthGuard']),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1['Body'])()),__param(0x1,(0x0,common_1[_0x5d1359(0xb7)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[chatDraw_dto_1[_0x5d1359(0xeb)],Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xa5),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xec)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xb8)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xec),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xd5)),(0x0,swagger_1['ApiOperation'])({'summary':'添加修改ChatBoxType'}),(0x0,common_1['UseGuards'])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata(_0x5d1359(0xd2),Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xd5),null),__decorate([(0x0,common_1[_0x5d1359(0xa9)])('queryChatBoxTypes'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xd8)}),(0x0,common_1[_0x5d1359(0xba)])(adminAuth_guard_1['AdminAuthGuard']),__metadata('design:type',Function),__metadata('design:paramtypes',[]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xbe),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xab)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xdd)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController['prototype'],_0x5d1359(0xab),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])('delChatBox'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xb5)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xca),null),__decorate([(0x0,common_1[_0x5d1359(0xa9)])('queryChatBoxs'),(0x0,swagger_1['ApiOperation'])({'summary':_0x5d1359(0xaa)}),(0x0,common_1[_0x5d1359(0xba)])(adminAuth_guard_1[_0x5d1359(0x9d)]),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xf2),null),__decorate([(0x0,common_1[_0x5d1359(0xa9)])(_0x5d1359(0x94)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xae)}),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0x94),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])('setChatPreType'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xc3)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xe8),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])('delChatPretype'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0x96)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1['Req'])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController['prototype'],_0x5d1359(0xc4),null),__decorate([(0x0,common_1['Get'])(_0x5d1359(0xaf)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xe1)}),(0x0,common_1[_0x5d1359(0xba)])(adminAuth_guard_1[_0x5d1359(0x9d)]),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[]),__metadata('design:returntype',Promise)],ChatgptController[_0x5d1359(0xcd)],'queryChatPreType',null),__decorate([(0x0,common_1[_0x5d1359(0xda)])('setChatPre'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0x8f)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1[_0x5d1359(0xf0)]),(0x0,swagger_1[_0x5d1359(0xbf)])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1[_0x5d1359(0xa3)])()),__metadata('design:type',Function),__metadata('design:paramtypes',[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController['prototype'],_0x5d1359(0xdc),null),__decorate([(0x0,common_1[_0x5d1359(0xda)])(_0x5d1359(0xb9)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xc5)}),(0x0,common_1[_0x5d1359(0xba)])(superAuth_guard_1['SuperAuthGuard']),(0x0,swagger_1['ApiBearerAuth'])(),__param(0x0,(0x0,common_1[_0x5d1359(0xb7)])()),__param(0x1,(0x0,common_1['Body'])()),__metadata('design:type',Function),__metadata(_0x5d1359(0xe5),[Object,Object]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0xb9),null),__decorate([(0x0,common_1[_0x5d1359(0xa9)])('queryChatPres'),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xc6)}),(0x0,common_1[_0x5d1359(0xba)])(adminAuth_guard_1[_0x5d1359(0x9d)]),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController[_0x5d1359(0xcd)],_0x5d1359(0x91),null),__decorate([(0x0,common_1[_0x5d1359(0xa9)])(_0x5d1359(0xa0)),(0x0,swagger_1[_0x5d1359(0xe9)])({'summary':_0x5d1359(0xc6)}),__metadata(_0x5d1359(0xd2),Function),__metadata(_0x5d1359(0xe5),[]),__metadata(_0x5d1359(0xd3),Promise)],ChatgptController['prototype'],'queryChatPreList',null),ChatgptController=__decorate([(0x0,swagger_1[_0x5d1359(0xcf)])(_0x5d1359(0xb3)),(0x0,common_1[_0x5d1359(0xcb)])(_0x5d1359(0xb3)),__metadata(_0x5d1359(0xe5),[chatgpt_service_1[_0x5d1359(0xb2)],globalConfig_service_1[_0x5d1359(0xd6)]])],ChatgptController),exports['ChatgptController']=ChatgptController;