mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 08:55:50 +00:00
2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
'use strict';const _0x2c0449=_0x3db6;function _0x3db6(_0x9002e0,_0x1094ee){const _0x5eeb99=_0x5eeb();return _0x3db6=function(_0x3db6db,_0x283580){_0x3db6db=_0x3db6db-0xf6;let _0x5afff8=_0x5eeb99[_0x3db6db];return _0x5afff8;},_0x3db6(_0x9002e0,_0x1094ee);}(function(_0x1e9bba,_0x3728fe){const _0x586111=_0x3db6,_0x4763a4=_0x1e9bba();while(!![]){try{const _0x5aabd4=-parseInt(_0x586111(0xf8))/0x1+-parseInt(_0x586111(0xfc))/0x2*(parseInt(_0x586111(0xf6))/0x3)+-parseInt(_0x586111(0xfe))/0x4*(parseInt(_0x586111(0xff))/0x5)+parseInt(_0x586111(0xfb))/0x6*(-parseInt(_0x586111(0x101))/0x7)+parseInt(_0x586111(0xfd))/0x8+parseInt(_0x586111(0xf9))/0x9*(parseInt(_0x586111(0x100))/0xa)+parseInt(_0x586111(0xf7))/0xb;if(_0x5aabd4===_0x3728fe)break;else _0x4763a4['push'](_0x4763a4['shift']());}catch(_0x5a880d){_0x4763a4['push'](_0x4763a4['shift']());}}}(_0x5eeb,0x7e12b));function _0x5eeb(){const _0x2eac27=['250elOqOC','60sDlirr','56343YKlasM','text-embedding-3-small','https://api.siliconflow.cn/v1/rerank','805245pbMFJX','24802360QgqstW','861265foToGS','204012hRKiKB','openai','516KsZfcQ','2PISRGe','6082168aZYXvl','65020SVdnnE'];_0x5eeb=function(){return _0x2eac27;};return _0x5eeb();}export const defaultSettings={'retrieval':{'enabled':![],'apiEndpoint':_0x2c0449(0xfa),'customApiUrl':'','apiKey':'','embeddingModel':_0x2c0449(0x102),'notify':!![],'batchSize':0x5},'advanced':{'chunkSize':0x200,'overlap':0x32,'matchThreshold':0.3,'queryMessageCount':0x2,'maxResults':0x5},'injection':{'template':'翰林院呈报相关忆识:\x0a{{text}}','position':0x1,'depth':0x1,'depth_role':0x0},'condensation':{'enabled':!![],'layerStart':0x1,'layerEnd':0xa,'messageTypes':{'user':!![],'ai':!![],'hidden':![]},'tagExtractionEnabled':![],'tags':'摘要'},'rerank':{'enabled':![],'url':_0x2c0449(0x103),'apiKey':'','model':'Pro/BAAI/bge-reranker-v2-m3','top_n':0x5,'hybrid_alpha':0.7,'notify':!![]}};
|