diff --git a/crazy_functions/下载arxiv论文翻译摘要.py b/crazy_functions/下载arxiv论文翻译摘要.py index 38f00c4..50708a1 100644 --- a/crazy_functions/下载arxiv论文翻译摘要.py +++ b/crazy_functions/下载arxiv论文翻译摘要.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down, get_conf import re, requests, unicodedata, os diff --git a/crazy_functions/代码重写为全英文_多线程.py b/crazy_functions/代码重写为全英文_多线程.py index 7f62088..206a3d8 100644 --- a/crazy_functions/代码重写为全英文_多线程.py +++ b/crazy_functions/代码重写为全英文_多线程.py @@ -1,5 +1,5 @@ import threading -from predict import predict_no_ui_long_connection +from request_llm.bridge_chatgpt import predict_no_ui_long_connection from toolbox import CatchException, write_results_to_file, report_execption def extract_code_block_carefully(txt): diff --git a/crazy_functions/总结word文档.py b/crazy_functions/总结word文档.py index a117fb3..f3edfe8 100644 --- a/crazy_functions/总结word文档.py +++ b/crazy_functions/总结word文档.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down fast_debug = False diff --git a/crazy_functions/批量总结PDF文档.py b/crazy_functions/批量总结PDF文档.py index 7270263..0ab095a 100644 --- a/crazy_functions/批量总结PDF文档.py +++ b/crazy_functions/批量总结PDF文档.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down import re import unicodedata diff --git a/crazy_functions/批量总结PDF文档pdfminer.py b/crazy_functions/批量总结PDF文档pdfminer.py index 060187c..8aba47c 100644 --- a/crazy_functions/批量总结PDF文档pdfminer.py +++ b/crazy_functions/批量总结PDF文档pdfminer.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down fast_debug = False diff --git a/crazy_functions/生成函数注释.py b/crazy_functions/生成函数注释.py index 010600c..62df83a 100644 --- a/crazy_functions/生成函数注释.py +++ b/crazy_functions/生成函数注释.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down fast_debug = False diff --git a/crazy_functions/解析项目源代码.py b/crazy_functions/解析项目源代码.py index da6d102..ced0f26 100644 --- a/crazy_functions/解析项目源代码.py +++ b/crazy_functions/解析项目源代码.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down fast_debug = False diff --git a/crazy_functions/读文章写摘要.py b/crazy_functions/读文章写摘要.py index dc92256..b669864 100644 --- a/crazy_functions/读文章写摘要.py +++ b/crazy_functions/读文章写摘要.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui +from request_llm.bridge_chatgpt import predict_no_ui from toolbox import CatchException, report_execption, write_results_to_file, predict_no_ui_but_counting_down fast_debug = False diff --git a/crazy_functions/高级功能函数模板.py b/crazy_functions/高级功能函数模板.py index b5c84b9..d3fdde0 100644 --- a/crazy_functions/高级功能函数模板.py +++ b/crazy_functions/高级功能函数模板.py @@ -1,4 +1,4 @@ -from predict import predict_no_ui_long_connection +from request_llm.bridge_chatgpt import predict_no_ui_long_connection from toolbox import CatchException, report_execption, write_results_to_file import datetime diff --git a/main.py b/main.py index a480d5b..ae80050 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ import os; os.environ['no_proxy'] = '*' # 避免代理网络产生意外污染 import gradio as gr -from predict import predict +from request_llm.bridge_chatgpt import predict from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith # 建议您复制一个config_private.py放自己的秘密, 如API和代理网址, 避免不小心传github被别人看到 diff --git a/predict.py b/request_llm/bridge_chatgpt.py similarity index 100% rename from predict.py rename to request_llm/bridge_chatgpt.py diff --git a/toolbox.py b/toolbox.py index 13d8ba1..6678dec 100644 --- a/toolbox.py +++ b/toolbox.py @@ -39,7 +39,7 @@ def predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temp long_connection: 是否采用更稳定的连接方式(推荐) """ import time - from predict import predict_no_ui, predict_no_ui_long_connection + from request_llm.bridge_chatgpt import predict_no_ui, predict_no_ui_long_connection from toolbox import get_conf TIMEOUT_SECONDS, MAX_RETRY = get_conf('TIMEOUT_SECONDS', 'MAX_RETRY') # 多线程的时候,需要一个mutable结构在不同线程之间传递信息