From 6bf89dfa2d9431fe233cfcd4f1c4c325f8db6f17 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 19 Apr 2023 14:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- crazy_functions/crazy_functions_test.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 1cc057d..8c01531 100644 --- a/config.py +++ b/config.py @@ -44,7 +44,7 @@ WEB_PORT = -1 MAX_RETRY = 2 # OpenAI模型选择是(gpt4现在只对申请成功的人开放) -LLM_MODEL = "gpt-3.5-turbo" # 可选 "chatglm" +LLM_MODEL = "gpt-3.5-turbo" # 可选 ↓↓↓ AVAIL_LLM_MODELS = ["gpt-3.5-turbo", "api2d-gpt-3.5-turbo", "gpt-4", "api2d-gpt-4", "chatglm"] # 本地LLM模型如ChatGLM的执行方式 CPU/GPU diff --git a/crazy_functions/crazy_functions_test.py b/crazy_functions/crazy_functions_test.py index 1c50724..2838e54 100644 --- a/crazy_functions/crazy_functions_test.py +++ b/crazy_functions/crazy_functions_test.py @@ -37,6 +37,12 @@ def test_解析一个Python项目(): for cookies, cb, hist, msg in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): print(cb) +def test_解析一个Cpp项目(): + from crazy_functions.解析项目源代码 import 解析一个C项目 + txt = "crazy_functions/test_project/cpp/cppipc" + for cookies, cb, hist, msg in 解析一个C项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): + print(cb) + def test_Latex英文润色(): from crazy_functions.Latex全文润色 import Latex英文润色 txt = "crazy_functions/test_project/latex/attention" @@ -80,6 +86,7 @@ test_批量翻译PDF文档() test_谷歌检索小助手() test_总结word文档() test_下载arxiv论文并翻译摘要() +test_解析一个Cpp项目() input("程序完成,回车退出。") print("退出。") \ No newline at end of file