3
3
from loguru import logger
4
4
5
5
def get_crazy_functions ():
6
- from crazy_functions .读文章写摘要 import 读文章写摘要
7
- from crazy_functions .生成函数注释 import 批量生成函数注释
6
+ from crazy_functions .Paper_Abstract_Writer import Paper_Abstract_Writer
7
+ from crazy_functions .Program_Comment_Gen import 批量Program_Comment_Gen
8
8
from crazy_functions .SourceCode_Analyse import 解析项目本身
9
9
from crazy_functions .SourceCode_Analyse import 解析一个Python项目
10
10
from crazy_functions .SourceCode_Analyse import 解析一个Matlab项目
@@ -17,26 +17,26 @@ def get_crazy_functions():
17
17
from crazy_functions .高级功能函数模板 import 高阶功能模板函数
18
18
from crazy_functions .高级功能函数模板 import Demo_Wrap
19
19
from crazy_functions .Latex_Project_Polish import Latex英文润色
20
- from crazy_functions .询问多个大语言模型 import 同时问询
20
+ from crazy_functions .Multi_LLM_Query import 同时问询
21
21
from crazy_functions .SourceCode_Analyse import 解析一个Lua项目
22
22
from crazy_functions .SourceCode_Analyse import 解析一个CSharp项目
23
- from crazy_functions .总结word文档 import 总结word文档
24
- from crazy_functions .解析JupyterNotebook import 解析ipynb文件
23
+ from crazy_functions .Word_Summary import Word_Summary
24
+ from crazy_functions .SourceCode_Analyse_JupyterNotebook import 解析ipynb文件
25
25
from crazy_functions .Conversation_To_File import 载入对话历史存档
26
26
from crazy_functions .Conversation_To_File import 对话历史存档
27
27
from crazy_functions .Conversation_To_File import Conversation_To_File_Wrap
28
28
from crazy_functions .Conversation_To_File import 删除所有本地对话历史记录
29
- from crazy_functions .辅助功能 import 清除缓存
29
+ from crazy_functions .Helpers import 清除缓存
30
30
from crazy_functions .Markdown_Translate import Markdown英译中
31
- from crazy_functions .批量总结PDF文档 import 批量总结PDF文档
31
+ from crazy_functions .PDF_Summary import PDF_Summary
32
32
from crazy_functions .PDF_Translate import 批量翻译PDF文档
33
- from crazy_functions .谷歌检索小助手 import 谷歌检索小助手
34
- from crazy_functions .理解PDF文档内容 import 理解PDF文档内容标准文件输入
33
+ from crazy_functions .Google_Scholar_Assistant_Legacy import Google_Scholar_Assistant_Legacy
34
+ from crazy_functions .PDF_QA import PDF_QA标准文件输入
35
35
from crazy_functions .Latex_Project_Polish import Latex中文润色
36
36
from crazy_functions .Latex_Project_Polish import Latex英文纠错
37
37
from crazy_functions .Markdown_Translate import Markdown中译英
38
- from crazy_functions .虚空终端 import 虚空终端
39
- from crazy_functions .生成多种Mermaid图表 import Mermaid_Gen
38
+ from crazy_functions .Void_Terminal import Void_Terminal
39
+ from crazy_functions .Mermaid_Figure_Gen import Mermaid_Gen
40
40
from crazy_functions .PDF_Translate_Wrap import PDF_Tran
41
41
from crazy_functions .Latex_Function import Latex英文纠错加PDF对比
42
42
from crazy_functions .Latex_Function import Latex翻译中文并重新编译PDF
@@ -67,7 +67,7 @@ def get_crazy_functions():
67
67
"Color" : "stop" ,
68
68
"AsButton" : True ,
69
69
"Info" : "使用自然语言实现您的想法" ,
70
- "Function" : HotReload (虚空终端 ),
70
+ "Function" : HotReload (Void_Terminal ),
71
71
},
72
72
"解析整个Python项目" : {
73
73
"Group" : "编程" ,
@@ -125,7 +125,7 @@ def get_crazy_functions():
125
125
"Color" : "stop" ,
126
126
"AsButton" : False ,
127
127
"Info" : "批量总结word文档 | 输入参数为路径" ,
128
- "Function" : HotReload (总结word文档 ),
128
+ "Function" : HotReload (Word_Summary ),
129
129
},
130
130
"解析整个Matlab项目" : {
131
131
"Group" : "编程" ,
@@ -204,7 +204,7 @@ def get_crazy_functions():
204
204
"Color" : "stop" ,
205
205
"AsButton" : False ,
206
206
"Info" : "读取Tex论文并写摘要 | 输入参数为路径" ,
207
- "Function" : HotReload (读文章写摘要 ),
207
+ "Function" : HotReload (Paper_Abstract_Writer ),
208
208
},
209
209
"翻译README或MD" : {
210
210
"Group" : "编程" ,
@@ -225,14 +225,14 @@ def get_crazy_functions():
225
225
"Color" : "stop" ,
226
226
"AsButton" : False , # 加入下拉菜单中
227
227
"Info" : "批量生成函数的注释 | 输入参数为路径" ,
228
- "Function" : HotReload (批量生成函数注释 ),
228
+ "Function" : HotReload (批量Program_Comment_Gen ),
229
229
},
230
230
"保存当前的对话" : {
231
231
"Group" : "对话" ,
232
232
"Color" : "stop" ,
233
233
"AsButton" : True ,
234
234
"Info" : "保存当前的对话 | 不需要输入参数" ,
235
- "Function" : HotReload (对话历史存档 ), # 当注册Class后,Function旧接口仅会在“虚空终端 ”中起作用
235
+ "Function" : HotReload (对话历史存档 ), # 当注册Class后,Function旧接口仅会在“Void_Terminal ”中起作用
236
236
"Class" : Conversation_To_File_Wrap # 新一代插件需要注册Class
237
237
},
238
238
"[多线程Demo]解析此项目本身(源码自译解)" : {
@@ -258,12 +258,12 @@ def get_crazy_functions():
258
258
"Function" : None ,
259
259
"Class" : Demo_Wrap , # 新一代插件需要注册Class
260
260
},
261
- "精准翻译PDF论文 " : {
261
+ "PDF论文翻译 " : {
262
262
"Group" : "学术" ,
263
263
"Color" : "stop" ,
264
264
"AsButton" : True ,
265
265
"Info" : "精准翻译PDF论文为中文 | 输入参数为路径" ,
266
- "Function" : HotReload (批量翻译PDF文档 ), # 当注册Class后,Function旧接口仅会在“虚空终端 ”中起作用
266
+ "Function" : HotReload (批量翻译PDF文档 ), # 当注册Class后,Function旧接口仅会在“Void_Terminal ”中起作用
267
267
"Class" : PDF_Tran , # 新一代插件需要注册Class
268
268
},
269
269
"询问多个GPT模型" : {
@@ -277,21 +277,21 @@ def get_crazy_functions():
277
277
"Color" : "stop" ,
278
278
"AsButton" : False , # 加入下拉菜单中
279
279
"Info" : "批量总结PDF文档的内容 | 输入参数为路径" ,
280
- "Function" : HotReload (批量总结PDF文档 ),
280
+ "Function" : HotReload (PDF_Summary ),
281
281
},
282
282
"谷歌学术检索助手(输入谷歌学术搜索页url)" : {
283
283
"Group" : "学术" ,
284
284
"Color" : "stop" ,
285
285
"AsButton" : False , # 加入下拉菜单中
286
286
"Info" : "使用谷歌学术检索助手搜索指定URL的结果 | 输入参数为谷歌学术搜索页的URL" ,
287
- "Function" : HotReload (谷歌检索小助手 ),
287
+ "Function" : HotReload (Google_Scholar_Assistant_Legacy ),
288
288
},
289
289
"理解PDF文档内容 (模仿ChatPDF)" : {
290
290
"Group" : "学术" ,
291
291
"Color" : "stop" ,
292
292
"AsButton" : False , # 加入下拉菜单中
293
293
"Info" : "理解PDF文档的内容并进行回答 | 输入参数为路径" ,
294
- "Function" : HotReload (理解PDF文档内容标准文件输入 ),
294
+ "Function" : HotReload (PDF_QA标准文件输入 ),
295
295
},
296
296
"英文Latex项目全文润色(输入路径或上传压缩包)" : {
297
297
"Group" : "学术" ,
@@ -356,7 +356,7 @@ def get_crazy_functions():
356
356
r"例如当单词'agent'翻译不准确时, 请尝试把以下指令复制到高级参数区: "
357
357
r'If the term "agent" is used in this section, it should be translated to "智能体". ' ,
358
358
"Info" : "ArXiv论文精细翻译 | 输入参数arxiv论文的ID,比如1812.10695" ,
359
- "Function" : HotReload (Latex翻译中文并重新编译PDF ), # 当注册Class后,Function旧接口仅会在“虚空终端 ”中起作用
359
+ "Function" : HotReload (Latex翻译中文并重新编译PDF ), # 当注册Class后,Function旧接口仅会在“Void_Terminal ”中起作用
360
360
"Class" : Arxiv_Localize , # 新一代插件需要注册Class
361
361
},
362
362
"📚本地Latex论文精细翻译(上传Latex项目)[需Latex]" : {
@@ -379,7 +379,7 @@ def get_crazy_functions():
379
379
r"例如当单词'agent'翻译不准确时, 请尝试把以下指令复制到高级参数区: "
380
380
r'If the term "agent" is used in this section, it should be translated to "智能体". ' ,
381
381
"Info" : "PDF翻译中文,并重新编译PDF | 输入参数为路径" ,
382
- "Function" : HotReload (PDF翻译中文并重新编译PDF ), # 当注册Class后,Function旧接口仅会在“虚空终端 ”中起作用
382
+ "Function" : HotReload (PDF翻译中文并重新编译PDF ), # 当注册Class后,Function旧接口仅会在“Void_Terminal ”中起作用
383
383
"Class" : PDF_Localize # 新一代插件需要注册Class
384
384
},
385
385
"批量文件询问 (支持自定义总结各种文件)" : {
@@ -400,7 +400,7 @@ def get_crazy_functions():
400
400
"Color" : "stop" ,
401
401
"AsButton" : False ,
402
402
"Info" : "使用 DALLE2/DALLE3 生成图片 | 输入参数字符串,提供图像的内容" ,
403
- "Function" : HotReload (图片生成_DALLE2 ), # 当注册Class后,Function旧接口仅会在“虚空终端 ”中起作用
403
+ "Function" : HotReload (图片生成_DALLE2 ), # 当注册Class后,Function旧接口仅会在“Void_Terminal ”中起作用
404
404
"Class" : ImageGen_Wrap # 新一代插件需要注册Class
405
405
},
406
406
}
@@ -427,7 +427,7 @@ def get_crazy_functions():
427
427
428
428
429
429
try :
430
- from crazy_functions .下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
430
+ from crazy_functions .Arxiv_Downloader import 下载arxiv论文并翻译摘要
431
431
432
432
function_plugins .update (
433
433
{
@@ -465,7 +465,7 @@ def get_crazy_functions():
465
465
logger .error ("Load function plugin failed" )
466
466
467
467
try :
468
- from crazy_functions .询问多个大语言模型 import 同时问询_指定模型
468
+ from crazy_functions .Multi_LLM_Query import 同时问询_指定模型
469
469
470
470
function_plugins .update (
471
471
{
@@ -486,7 +486,7 @@ def get_crazy_functions():
486
486
487
487
488
488
try :
489
- from crazy_functions .总结音视频 import 总结音视频
489
+ from crazy_functions .Audio_Summary import Audio_Summary
490
490
491
491
function_plugins .update (
492
492
{
@@ -497,7 +497,7 @@ def get_crazy_functions():
497
497
"AdvancedArgs" : True ,
498
498
"ArgsReminder" : "调用openai api 使用whisper-1模型, 目前支持的格式:mp4, m4a, wav, mpga, mpeg, mp3。此处可以输入解析提示,例如:解析为简体中文(默认)。" ,
499
499
"Info" : "批量总结音频或视频 | 输入参数为路径" ,
500
- "Function" : HotReload (总结音视频 ),
500
+ "Function" : HotReload (Audio_Summary ),
501
501
}
502
502
}
503
503
)
@@ -506,7 +506,7 @@ def get_crazy_functions():
506
506
logger .error ("Load function plugin failed" )
507
507
508
508
try :
509
- from crazy_functions .数学动画生成manim import 动画生成
509
+ from crazy_functions .Math_Animation_Gen import 动画生成
510
510
511
511
function_plugins .update (
512
512
{
@@ -543,7 +543,7 @@ def get_crazy_functions():
543
543
logger .error ("Load function plugin failed" )
544
544
545
545
try :
546
- from crazy_functions .知识库问答 import 知识库文件注入
546
+ from crazy_functions .Vectorstore_QA import 知识库文件注入
547
547
548
548
function_plugins .update (
549
549
{
@@ -562,7 +562,7 @@ def get_crazy_functions():
562
562
logger .error ("Load function plugin failed" )
563
563
564
564
try :
565
- from crazy_functions .知识库问答 import 读取知识库作答
565
+ from crazy_functions .Vectorstore_QA import 读取知识库作答
566
566
567
567
function_plugins .update (
568
568
{
@@ -581,7 +581,7 @@ def get_crazy_functions():
581
581
logger .error ("Load function plugin failed" )
582
582
583
583
try :
584
- from crazy_functions .交互功能函数模板 import 交互功能模板函数
584
+ from crazy_functions .Interactive_Func_Template import 交互功能模板函数
585
585
586
586
function_plugins .update (
587
587
{
@@ -603,7 +603,7 @@ def get_crazy_functions():
603
603
604
604
ENABLE_AUDIO = get_conf ("ENABLE_AUDIO" )
605
605
if ENABLE_AUDIO :
606
- from crazy_functions .语音助手 import 语音助手
606
+ from crazy_functions .Audio_Assistant import Audio_Assistant
607
607
608
608
function_plugins .update (
609
609
{
@@ -612,7 +612,7 @@ def get_crazy_functions():
612
612
"Color" : "stop" ,
613
613
"AsButton" : True ,
614
614
"Info" : "这是一个时刻聆听着的语音对话助手 | 没有输入参数" ,
615
- "Function" : HotReload (语音助手 ),
615
+ "Function" : HotReload (Audio_Assistant ),
616
616
}
617
617
}
618
618
)
@@ -621,7 +621,7 @@ def get_crazy_functions():
621
621
logger .error ("Load function plugin failed" )
622
622
623
623
try :
624
- from crazy_functions .批量翻译PDF文档_NOUGAT import 批量翻译PDF文档
624
+ from crazy_functions .PDF_Translate_Nougat import 批量翻译PDF文档
625
625
626
626
function_plugins .update (
627
627
{
@@ -638,15 +638,15 @@ def get_crazy_functions():
638
638
logger .error ("Load function plugin failed" )
639
639
640
640
try :
641
- from crazy_functions .函数动态生成 import 函数动态生成
641
+ from crazy_functions .Dynamic_Function_Generate import Dynamic_Function_Generate
642
642
643
643
function_plugins .update (
644
644
{
645
645
"动态代码解释器(CodeInterpreter)" : {
646
646
"Group" : "智能体" ,
647
647
"Color" : "stop" ,
648
648
"AsButton" : False ,
649
- "Function" : HotReload (函数动态生成 ),
649
+ "Function" : HotReload (Dynamic_Function_Generate ),
650
650
}
651
651
}
652
652
)
@@ -655,38 +655,21 @@ def get_crazy_functions():
655
655
logger .error ("Load function plugin failed" )
656
656
657
657
# try:
658
- # from crazy_functions.多智能体 import 多智能体终端
658
+ # from crazy_functions.Multi_Agent_Legacy import Multi_Agent_Legacy终端
659
659
# function_plugins.update(
660
660
# {
661
- # "AutoGen多智能体终端 (仅供测试)": {
661
+ # "AutoGenMulti_Agent_Legacy终端 (仅供测试)": {
662
662
# "Group": "智能体",
663
663
# "Color": "stop",
664
664
# "AsButton": False,
665
- # "Function": HotReload(多智能体终端 ),
665
+ # "Function": HotReload(Multi_Agent_Legacy终端 ),
666
666
# }
667
667
# }
668
668
# )
669
669
# except:
670
670
# logger.error(trimmed_format_exc())
671
671
# logger.error("Load function plugin failed")
672
672
673
- try :
674
- from crazy_functions .互动小游戏 import 随机小游戏
675
-
676
- function_plugins .update (
677
- {
678
- "随机互动小游戏(仅供测试)" : {
679
- "Group" : "智能体" ,
680
- "Color" : "stop" ,
681
- "AsButton" : False ,
682
- "Function" : HotReload (随机小游戏 ),
683
- }
684
- }
685
- )
686
- except :
687
- logger .error (trimmed_format_exc ())
688
- logger .error ("Load function plugin failed" )
689
-
690
673
try :
691
674
from crazy_functions .Rag_Interface import Rag问答
692
675
0 commit comments