{"id":13452930,"url":"https://github.com/binary-husky/gpt_academic","last_synced_at":"2025-05-12T16:19:05.571Z","repository":{"id":144626989,"uuid":"616372661","full_name":"binary-husky/gpt_academic","owner":"binary-husky","description":"为GPT/GLM等LLM大语言模型提供实用化交互接口，特别优化论文阅读/润色/写作体验，模块化设计，支持自定义快捷按钮\u0026函数插件，支持Python和C++等项目剖析\u0026自译解功能，PDF/LaTex论文翻译\u0026总结功能，支持并行问询多种LLM模型，支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。","archived":false,"fork":false,"pushed_at":"2025-05-06T14:19:12.000Z","size":71926,"stargazers_count":68449,"open_issues_count":275,"forks_count":8346,"subscribers_count":280,"default_branch":"master","last_synced_at":"2025-05-12T16:18:57.409Z","etag":null,"topics":["academic","chatglm-6b","chatgpt","gpt-4","large-language-models"],"latest_commit_sha":null,"homepage":"https://github.com/binary-husky/gpt_academic/wiki/online","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binary-husky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-20T09:05:13.000Z","updated_at":"2025-05-12T16:11:36.000Z","dependencies_parsed_at":"2023-12-19T12:19:45.080Z","dependency_job_id":"d18d4665-e79a-4c8d-b92c-0d2374ce7e79","html_url":"https://github.com/binary-husky/gpt_academic","commit_stats":null,"previous_names":["binary-husky/chatgpt_academic"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fgpt_academic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fgpt_academic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fgpt_academic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-husky%2Fgpt_academic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binary-husky","download_url":"https://codeload.github.com/binary-husky/gpt_academic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253774593,"owners_count":21962199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["academic","chatglm-6b","chatgpt","gpt-4","large-language-models"],"created_at":"2024-07-31T08:00:28.386Z","updated_at":"2025-05-12T16:19:05.546Z","avatar_url":"https://github.com/binary-husky.png","language":"Python","funding_links":[],"categories":["参考-开源项目","Python","精选文章","Repos","AI Agent","AI助手","Langchain","ChatGPT 开发","Research Assistance","🤖 ChatGPT Agents","Applications","ChatGPT 应用","Open-Source Local LLM Projects","AI应用"],"sub_categories":["3. 论文综述和对比分析（Medium）","学术科研","Research","Github 热门项目（10k+）","Targeted Learning","Research \u0026 Analysis","提示语（魔法）","音乐声音"],"readme":"\u003e [!IMPORTANT]\n\u003e `master主分支`最新动态(2025.3.2): 修复大量代码typo / 联网组件支持Jina的api / 增加deepseek-r1支持  \n\u003e `frontier开发分支`最新动态(2024.12.9): 更新对话时间线功能，优化xelatex论文翻译  \n\u003e `wiki文档`最新动态(2024.12.5): 更新ollama接入指南  \n\u003e\n\u003e 2025.2.2: 三分钟快速接入最强qwen2.5-max[视频](https://www.bilibili.com/video/BV1LeFuerEG4)  \n\u003e 2025.2.1: 支持自定义字体  \n\u003e 2024.10.10: 突发停电，紧急恢复了提供[whl包](https://drive.google.com/drive/folders/14kR-3V-lIbvGxri4AHc8TpiA1fqsw7SK?usp=sharing)的文件服务器  \n\u003e 2024.5.1: 加入Doc2x翻译PDF论文的功能，[查看详情](https://github.com/binary-husky/gpt_academic/wiki/Doc2x)  \n\u003e 2024.3.11: 全力支持Qwen、GLM、DeepseekCoder等中文大语言模型！ SoVits语音克隆模块，[查看详情](https://www.bilibili.com/video/BV1Rp421S7tF/) \n\u003e 2024.1.17: 安装依赖时，请选择`requirements.txt`中**指定的版本**。 安装命令：`pip install -r requirements.txt`。\n\n\u003cbr\u003e\n\n\u003cdiv align=center\u003e\n\u003ch1 aligh=\"center\"\u003e\n\u003cimg src=\"docs/logo.png\" width=\"40\"\u003e GPT 学术优化 (GPT Academic)\n\u003c/h1\u003e\n\n[![Github][Github-image]][Github-url]\n[![License][License-image]][License-url]\n[![Releases][Releases-image]][Releases-url]\n[![Installation][Installation-image]][Installation-url]\n[![Wiki][Wiki-image]][Wiki-url]\n[![PR][PRs-image]][PRs-url]\n\n[Github-image]: https://img.shields.io/badge/github-12100E.svg?style=flat-square\n[License-image]: https://img.shields.io/github/license/binary-husky/gpt_academic?label=License\u0026style=flat-square\u0026color=orange\n[Releases-image]: https://img.shields.io/github/release/binary-husky/gpt_academic?label=Release\u0026style=flat-square\u0026color=blue\n[Installation-image]: https://img.shields.io/badge/dynamic/json?color=blue\u0026url=https://raw.githubusercontent.com/binary-husky/gpt_academic/master/version\u0026query=$.version\u0026label=Installation\u0026style=flat-square\n[Wiki-image]: https://img.shields.io/badge/wiki-项目文档-black?style=flat-square\n[PRs-image]: https://img.shields.io/badge/PRs-welcome-pink?style=flat-square\n\n[Github-url]: https://github.com/binary-husky/gpt_academic\n[License-url]: https://github.com/binary-husky/gpt_academic/blob/master/LICENSE\n[Releases-url]: https://github.com/binary-husky/gpt_academic/releases\n[Installation-url]: https://github.com/binary-husky/gpt_academic#installation\n[Wiki-url]: https://github.com/binary-husky/gpt_academic/wiki\n[PRs-url]: https://github.com/binary-husky/gpt_academic/pulls\n\n\n\u003c/div\u003e\n\u003cbr\u003e\n\n**如果喜欢这个项目，请给它一个Star；如果您发明了好用的快捷键或插件，欢迎发pull requests！**\n\nIf you like this project, please give it a Star.\nRead this in [English](docs/README.English.md) | [日本語](docs/README.Japanese.md) | [한국어](docs/README.Korean.md) | [Русский](docs/README.Russian.md) | [Français](docs/README.French.md). All translations have been provided by the project itself. To translate this project to arbitrary language with GPT, read and run [`multi_language.py`](multi_language.py) (experimental).\n\u003cbr\u003e\n\n\u003e [!NOTE]\n\u003e 1.本项目中每个文件的功能都在[自译解报告](https://github.com/binary-husky/gpt_academic/wiki/GPT‐Academic项目自译解报告)`self_analysis.md`详细说明。随着版本的迭代，您也可以随时自行点击相关函数插件，调用GPT重新生成项目的自我解析报告。常见问题请查阅wiki。\n\u003e    [![常规安装方法](https://img.shields.io/static/v1?label=\u0026message=常规安装方法\u0026color=gray)](#installation)  [![一键安装脚本](https://img.shields.io/static/v1?label=\u0026message=一键安装脚本\u0026color=gray)](https://github.com/binary-husky/gpt_academic/releases)  [![配置说明](https://img.shields.io/static/v1?label=\u0026message=配置说明\u0026color=gray)](https://github.com/binary-husky/gpt_academic/wiki/项目配置说明) [![wiki](https://img.shields.io/static/v1?label=\u0026message=wiki\u0026color=gray)]([https://github.com/binary-husky/gpt_academic/wiki/项目配置说明](https://github.com/binary-husky/gpt_academic/wiki))\n\u003e\n\u003e 2.本项目兼容并鼓励尝试国内中文大语言基座模型如通义千问，智谱GLM等。支持多个api-key共存，可在配置文件中填写如`API_KEY=\"openai-key1,openai-key2,azure-key3,api2d-key4\"`。需要临时更换`API_KEY`时，在输入区输入临时的`API_KEY`然后回车键提交即可生效。\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n功能（⭐= 近期新增功能） | 描述\n--- | ---\n⭐[接入新模型](https://github.com/binary-husky/gpt_academic/wiki/%E5%A6%82%E4%BD%95%E5%88%87%E6%8D%A2%E6%A8%A1%E5%9E%8B) | 百度[千帆](https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Nlks5zkzu)与文心一言, 通义千问[Qwen](https://modelscope.cn/models/qwen/Qwen-7B-Chat/summary)，上海AI-Lab[书生](https://github.com/InternLM/InternLM)，讯飞[星火](https://xinghuo.xfyun.cn/)，[LLaMa2](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)，[智谱GLM4](https://open.bigmodel.cn/)，DALLE3, [DeepseekCoder](https://coder.deepseek.com/)\n⭐支持mermaid图像渲染 | 支持让GPT生成[流程图](https://www.bilibili.com/video/BV18c41147H9/)、状态转移图、甘特图、饼状图、GitGraph等等（3.7版本）\n⭐Arxiv论文精细翻译 ([Docker](https://github.com/binary-husky/gpt_academic/pkgs/container/gpt_academic_with_latex)) | [插件] 一键[以超高质量翻译arxiv论文](https://www.bilibili.com/video/BV1dz4y1v77A/)，目前最好的论文翻译工具\n⭐[实时语音对话输入](https://github.com/binary-husky/gpt_academic/blob/master/docs/use_audio.md) | [插件] 异步[监听音频](https://www.bilibili.com/video/BV1AV4y187Uy/)，自动断句，自动寻找回答时机\n⭐AutoGen多智能体插件 | [插件] 借助微软AutoGen，探索多Agent的智能涌现可能！\n⭐虚空终端插件 | [插件] 能够使用自然语言直接调度本项目其他插件\n润色、翻译、代码解释 | 一键润色、翻译、查找论文语法错误、解释代码\n[自定义快捷键](https://www.bilibili.com/video/BV14s4y1E7jN) | 支持自定义快捷键\n模块化设计 | 支持自定义强大的[插件](https://github.com/binary-husky/gpt_academic/tree/master/crazy_functions)，插件支持[热更新](https://github.com/binary-husky/gpt_academic/wiki/%E5%87%BD%E6%95%B0%E6%8F%92%E4%BB%B6%E6%8C%87%E5%8D%97)\n[程序剖析](https://www.bilibili.com/video/BV1cj411A7VW) | [插件] 一键剖析Python/C/C++/Java/Lua/...项目树 或 [自我剖析](https://www.bilibili.com/video/BV1cj411A7VW)\n读论文、[翻译](https://www.bilibili.com/video/BV1KT411x7Wn)论文 | [插件] 一键解读latex/pdf论文全文并生成摘要\nLatex全文[翻译](https://www.bilibili.com/video/BV1nk4y1Y7Js/)、[润色](https://www.bilibili.com/video/BV1FT411H7c5/) | [插件] 一键翻译或润色latex论文\n批量注释生成 | [插件] 一键批量生成函数注释\nMarkdown[中英互译](https://www.bilibili.com/video/BV1yo4y157jV/) | [插件] 看到上面5种语言的[README](https://github.com/binary-husky/gpt_academic/blob/master/docs/README.English.md)了吗？就是出自他的手笔\n[PDF论文全文翻译功能](https://www.bilibili.com/video/BV1KT411x7Wn) | [插件] PDF论文提取题目\u0026摘要+翻译全文（多线程）\n[Arxiv小助手](https://www.bilibili.com/video/BV1LM4y1279X) | [插件] 输入arxiv文章url即可一键翻译摘要+下载PDF\nLatex论文一键校对 | [插件] 仿Grammarly对Latex文章进行语法、拼写纠错+输出对照PDF\n[谷歌学术统合小助手](https://www.bilibili.com/video/BV19L411U7ia) | [插件] 给定任意谷歌学术搜索页面URL，让gpt帮你[写relatedworks](https://www.bilibili.com/video/BV1GP411U7Az/)\n互联网信息聚合+GPT | [插件] 一键[让GPT从互联网获取信息](https://www.bilibili.com/video/BV1om4y127ck)回答问题，让信息永不过时\n公式/图片/表格显示 | 可以同时显示公式的[tex形式和渲染形式](https://user-images.githubusercontent.com/96192199/230598842-1d7fcddd-815d-40ee-af60-baf488a199df.png)，支持公式、代码高亮\n启动暗色[主题](https://github.com/binary-husky/gpt_academic/issues/173) | 在浏览器url后面添加```/?__theme=dark```可以切换dark主题\n[多LLM模型](https://www.bilibili.com/video/BV1wT411p7yf)支持 | 同时被GPT3.5、GPT4、[清华ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)、[复旦MOSS](https://github.com/OpenLMLab/MOSS)伺候的感觉一定会很不错吧？\n更多LLM模型接入，支持[huggingface部署](https://huggingface.co/spaces/qingxu98/gpt-academic) | 加入Newbing接口(新必应)，引入清华[Jittorllms](https://github.com/Jittor/JittorLLMs)支持[LLaMA](https://github.com/facebookresearch/llama)和[盘古α](https://openi.org.cn/pangu/)\n⭐[void-terminal](https://github.com/binary-husky/void-terminal) pip包 | 脱离GUI，在Python中直接调用本项目的所有函数插件（开发中）\n更多新功能展示 (图像生成等) …… | 见本文档结尾处 ……\n\u003c/div\u003e\n\n\n- 新界面（修改`config.py`中的LAYOUT选项即可实现“左右布局”和“上下布局”的切换）\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/279702205-d81137c3-affd-4cd1-bb5e-b15610389762.gif\" width=\"700\" \u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/70ff1ec5-e589-4561-a29e-b831079b37fb.gif\" width=\"700\" \u003e\n\u003c/div\u003e\n\n\n- 所有按钮都通过读取functional.py动态生成，可随意加自定义功能，解放剪贴板\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/231975334-b4788e91-4887-412f-8b43-2b9c5f41d248.gif\" width=\"700\" \u003e\n\u003c/div\u003e\n\n- 润色/纠错\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/231980294-f374bdcb-3309-4560-b424-38ef39f04ebd.gif\" width=\"700\" \u003e\n\u003c/div\u003e\n\n- 如果输出包含公式，会以tex形式和渲染形式同时显示，方便复制和阅读\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/230598842-1d7fcddd-815d-40ee-af60-baf488a199df.png\" width=\"700\" \u003e\n\u003c/div\u003e\n\n- 懒得看项目代码？直接把整个工程炫ChatGPT嘴里\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/226935232-6b6a73ce-8900-4aee-93f9-733c7e6fef53.png\" width=\"700\" \u003e\n\u003c/div\u003e\n\n- 多种大语言模型混合调用（ChatGLM + OpenAI-GPT3.5 + GPT4）\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/232537274-deca0563-7aa6-4b5d-94a2-b7c453c47794.png\" width=\"700\" \u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Installation\n\n```mermaid\nflowchart TD\n    A{\"安装方法\"} --\u003e W1(\"I 🔑直接运行 (Windows, Linux or MacOS)\")\n    W1 --\u003e W11[\"1 Python pip包管理依赖\"]\n    W1 --\u003e W12[\"2 Anaconda包管理依赖（推荐⭐）\"]\n\n    A --\u003e W2[\"II 🐳使用Docker (Windows, Linux or MacOS)\"]\n\n    W2 --\u003e k1[\"1 部署项目全部能力的大镜像（推荐⭐）\"]\n    W2 --\u003e k2[\"2 仅在线模型（GPT, GLM4等）镜像\"]\n    W2 --\u003e k3[\"3 在线模型 + Latex的大镜像\"]\n\n    A --\u003e W4[\"IV 🚀其他部署方法\"]\n    W4 --\u003e C1[\"1 Windows/MacOS 一键安装运行脚本（推荐⭐）\"]\n    W4 --\u003e C2[\"2 Huggingface, Sealos远程部署\"]\n    W4 --\u003e C4[\"3 其他 ...\"]\n```\n\n### 安装方法I：直接运行 (Windows, Linux or MacOS)\n\n1. 下载项目\n\n    ```sh\n    git clone --depth=1 https://github.com/binary-husky/gpt_academic.git\n    cd gpt_academic\n    ```\n\n2. 配置API_KEY等变量\n\n    在`config.py`中，配置API KEY等变量。[特殊网络环境设置方法](https://github.com/binary-husky/gpt_academic/issues/1)、[Wiki-项目配置说明](https://github.com/binary-husky/gpt_academic/wiki/项目配置说明)。\n\n    「 程序会优先检查是否存在名为`config_private.py`的私密配置文件，并用其中的配置覆盖`config.py`的同名配置。如您能理解以上读取逻辑，我们强烈建议您在`config.py`同路径下创建一个名为`config_private.py`的新配置文件，并使用`config_private.py`配置项目，从而确保自动更新时不会丢失配置 」。\n\n    「 支持通过`环境变量`配置项目，环境变量的书写格式参考`docker-compose.yml`文件或者我们的[Wiki页面](https://github.com/binary-husky/gpt_academic/wiki/项目配置说明)。配置读取优先级: `环境变量` \u003e `config_private.py` \u003e `config.py` 」。\n\n\n3. 安装依赖\n    ```sh\n    # （选择I: 如熟悉python, python推荐版本 3.9 ~ 3.11）备注：使用官方pip源或者阿里pip源, 临时换源方法：python -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/\n    python -m pip install -r requirements.txt\n\n    # （选择II: 使用Anaconda）步骤也是类似的 (https://www.bilibili.com/video/BV1rc411W7Dr)：\n    conda create -n gptac_venv python=3.11    # 创建anaconda环境\n    conda activate gptac_venv                 # 激活anaconda环境\n    python -m pip install -r requirements.txt # 这个步骤和pip安装一样的步骤\n    ```\n\n\n\u003cdetails\u003e\u003csummary\u003e如果需要支持清华ChatGLM系列/复旦MOSS/RWKV作为后端，请点击展开此处\u003c/summary\u003e\n\u003cp\u003e\n\n【可选步骤】如果需要支持清华ChatGLM系列/复旦MOSS作为后端，需要额外安装更多依赖（前提条件：熟悉Python + 用过Pytorch + 电脑配置够强）：\n\n```sh\n# 【可选步骤I】支持清华ChatGLM3。清华ChatGLM备注：如果遇到\"Call ChatGLM fail 不能正常加载ChatGLM的参数\" 错误，参考如下： 1：以上默认安装的为torch+cpu版，使用cuda需要卸载torch重新安装torch+cuda； 2：如因本机配置不够无法加载模型，可以修改request_llm/bridge_chatglm.py中的模型精度, 将 AutoTokenizer.from_pretrained(\"THUDM/chatglm-6b\", trust_remote_code=True) 都修改为 AutoTokenizer.from_pretrained(\"THUDM/chatglm-6b-int4\", trust_remote_code=True)\npython -m pip install -r request_llms/requirements_chatglm.txt\n\n# 【可选步骤II】支持清华ChatGLM4 注意：此模型至少需要24G显存\npython -m pip install -r request_llms/requirements_chatglm4.txt\n# 可使用modelscope下载ChatGLM4模型\n# pip install modelscope\n# modelscope download --model ZhipuAI/glm-4-9b-chat --local_dir ./THUDM/glm-4-9b-chat\n\n# 【可选步骤III】支持复旦MOSS\npython -m pip install -r request_llms/requirements_moss.txt\ngit clone --depth=1 https://github.com/OpenLMLab/MOSS.git request_llms/moss  # 注意执行此行代码时，必须处于项目根路径\n\n# 【可选步骤IV】支持RWKV Runner\n参考wiki：https://github.com/binary-husky/gpt_academic/wiki/%E9%80%82%E9%85%8DRWKV-Runner\n\n# 【可选步骤V】确保config.py配置文件的AVAIL_LLM_MODELS包含了期望的模型，目前支持的全部模型如下(jittorllms系列目前仅支持docker方案)：\nAVAIL_LLM_MODELS = [\"gpt-3.5-turbo\", \"api2d-gpt-3.5-turbo\", \"gpt-4\", \"api2d-gpt-4\", \"chatglm\", \"moss\"] # + [\"jittorllms_rwkv\", \"jittorllms_pangualpha\", \"jittorllms_llama\"]\n\n# 【可选步骤VI】支持本地模型INT8,INT4量化（这里所指的模型本身不是量化版本，目前deepseek-coder支持，后面测试后会加入更多模型量化选择）\npip install bitsandbyte\n# windows用户安装bitsandbytes需要使用下面bitsandbytes-windows-webui\npython -m pip install bitsandbytes --prefer-binary --extra-index-url=https://jllllll.github.io/bitsandbytes-windows-webui\npip install -U git+https://github.com/huggingface/transformers.git\npip install -U git+https://github.com/huggingface/accelerate.git\npip install peft\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\n4. 运行\n    ```sh\n    python main.py\n    ```\n\n### 安装方法II：使用Docker\n\n0. 部署项目的全部能力（这个是包含cuda和latex的大型镜像。但如果您网速慢、硬盘小，则不推荐该方法部署完整项目）\n[![fullcapacity](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-all-capacity.yml/badge.svg?branch=master)](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-all-capacity.yml)\n\n    ``` sh\n    # 修改docker-compose.yml，保留方案0并删除其他方案。然后运行：\n    docker-compose up\n    ```\n\n1. 仅ChatGPT + GLM4 + 文心一言+spark等在线模型（推荐大多数人选择）\n[![basic](https://github.com/binary-husky/gpt_academic/actions/workflows/build-without-local-llms.yml/badge.svg?branch=master)](https://github.com/binary-husky/gpt_academic/actions/workflows/build-without-local-llms.yml)\n[![basiclatex](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-latex.yml/badge.svg?branch=master)](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-latex.yml)\n[![basicaudio](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-audio-assistant.yml/badge.svg?branch=master)](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-audio-assistant.yml)\n\n    ``` sh\n    # 修改docker-compose.yml，保留方案1并删除其他方案。然后运行：\n    docker-compose up\n    ```\n\nP.S. 如果需要依赖Latex的插件功能，请见Wiki。另外，您也可以直接使用方案4或者方案0获取Latex功能。\n\n2. ChatGPT + GLM3 + MOSS + LLAMA2 + 通义千问（需要熟悉[Nvidia Docker](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#installing-on-ubuntu-and-debian)运行时）\n[![chatglm](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-chatglm.yml/badge.svg?branch=master)](https://github.com/binary-husky/gpt_academic/actions/workflows/build-with-chatglm.yml)\n\n    ``` sh\n    # 修改docker-compose.yml，保留方案2并删除其他方案。然后运行：\n    docker-compose up\n    ```\n\n\n### 安装方法III：其他部署方法\n1. **Windows一键运行脚本**。\n完全不熟悉python环境的Windows用户可以下载[Release](https://github.com/binary-husky/gpt_academic/releases)中发布的一键运行脚本安装无本地模型的版本。脚本贡献来源：[oobabooga](https://github.com/oobabooga/one-click-installers)。\n\n2. 使用第三方API、Azure等、文心一言、星火等，见[Wiki页面](https://github.com/binary-husky/gpt_academic/wiki/项目配置说明)\n\n3. 云服务器远程部署避坑指南。\n请访问[云服务器远程部署wiki](https://github.com/binary-husky/gpt_academic/wiki/%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%BF%9C%E7%A8%8B%E9%83%A8%E7%BD%B2%E6%8C%87%E5%8D%97)\n\n4. 在其他平台部署\u0026二级网址部署\n    - 使用Sealos[一键部署](https://github.com/binary-husky/gpt_academic/issues/993)。\n    - 使用WSL2（Windows Subsystem for Linux 子系统）。请访问[部署wiki-2](https://github.com/binary-husky/gpt_academic/wiki/%E4%BD%BF%E7%94%A8WSL2%EF%BC%88Windows-Subsystem-for-Linux-%E5%AD%90%E7%B3%BB%E7%BB%9F%EF%BC%89%E9%83%A8%E7%BD%B2)\n    - 如何在二级网址（如`http://localhost/subpath`）下运行。请访问[FastAPI运行说明](docs/WithFastapi.md)\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Advanced Usage\n### I：自定义新的便捷按钮（学术快捷键）\n\n现在已可以通过UI中的`界面外观`菜单中的`自定义菜单`添加新的便捷按钮。如果需要在代码中定义，请使用任意文本编辑器打开`core_functional.py`，添加如下条目即可：\n\n```python\n\"超级英译中\": {\n    # 前缀，会被加在你的输入之前。例如，用来描述你的要求，例如翻译、解释代码、润色等等\n    \"Prefix\": \"请翻译把下面一段内容成中文，然后用一个markdown表格逐一解释文中出现的专有名词：\\n\\n\",\n\n    # 后缀，会被加在你的输入之后。例如，配合前缀可以把你的输入内容用引号圈起来。\n    \"Suffix\": \"\",\n},\n```\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/226899272-477c2134-ed71-4326-810c-29891fe4a508.png\" width=\"500\" \u003e\n\u003c/div\u003e\n\n### II：自定义函数插件\n编写强大的函数插件来执行任何你想得到的和想不到的任务。\n本项目的插件编写、调试难度很低，只要您具备一定的python基础知识，就可以仿照我们提供的模板实现自己的插件功能。\n详情请参考[函数插件指南](https://github.com/binary-husky/gpt_academic/wiki/%E5%87%BD%E6%95%B0%E6%8F%92%E4%BB%B6%E6%8C%87%E5%8D%97)。\n\n\u003cbr\u003e\u003cbr\u003e\n\n# Updates\n### I：动态\n\n1. 对话保存功能。在函数插件区调用 `保存当前的对话` 即可将当前对话保存为可读+可复原的html文件，\n另外在函数插件区（下拉菜单）调用 `载入对话历史存档` ，即可还原之前的会话。\nTip：不指定文件直接点击 `载入对话历史存档` 可以查看历史html存档缓存。\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/235222390-24a9acc0-680f-49f5-bc81-2f3161f1e049.png\" width=\"500\" \u003e\n\u003c/div\u003e\n\n2. ⭐Latex/Arxiv论文翻译功能⭐\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/002a1a75-ace0-4e6a-94e2-ec1406a746f1\" height=\"250\" \u003e ===\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/9fdcc391-f823-464f-9322-f8719677043b\" height=\"250\" \u003e\n\u003c/div\u003e\n\n3. 虚空终端（从自然语言输入中，理解用户意图+自动调用其他插件）\n\n- 步骤一：输入 “ 请调用插件翻译PDF论文，地址为https://openreview.net/pdf?id=rJl0r3R9KX ”\n- 步骤二：点击“虚空终端”\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/66f1b044-e9ff-4eed-9126-5d4f3668f1ed\" width=\"500\" \u003e\n\u003c/div\u003e\n\n4. 模块化功能设计，简单的接口却能支持强大的功能\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/229288270-093643c1-0018-487a-81e6-1d7809b6e90f.png\" height=\"400\" \u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/227504931-19955f78-45cd-4d1c-adac-e71e50957915.png\" height=\"400\" \u003e\n\u003c/div\u003e\n\n5. 译解其他开源项目\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/226935232-6b6a73ce-8900-4aee-93f9-733c7e6fef53.png\" height=\"250\" \u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/226969067-968a27c1-1b9c-486b-8b81-ab2de8d3f88a.png\" height=\"250\" \u003e\n\u003c/div\u003e\n\n6. 装饰[live2d](https://github.com/fghrsh/live2d_demo)的小功能（默认关闭，需要修改`config.py`）\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/96192199/236432361-67739153-73e8-43fe-8111-b61296edabd9.png\" width=\"500\" \u003e\n\u003c/div\u003e\n\n7. OpenAI图像生成\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/bc7ab234-ad90-48a0-8d62-f703d9e74665\" width=\"500\" \u003e\n\u003c/div\u003e\n\n8. 基于mermaid的流图、脑图绘制\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/c518b82f-bd53-46e2-baf5-ad1b081c1da4\" width=\"500\" \u003e\n\u003c/div\u003e\n\n9. Latex全文校对纠错\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/651ccd98-02c9-4464-91e1-77a6b7d1b033\" height=\"200\" \u003e ===\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/476f66d9-7716-4537-b5c1-735372c25adb\" height=\"200\"\u003e\n\u003c/div\u003e\n\n10. 语言、主题切换\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/binary-husky/gpt_academic/assets/96192199/b6799499-b6fb-4f0c-9c8e-1b441872f4e8\" width=\"500\" \u003e\n\u003c/div\u003e\n\n\n\n### II：版本:\n- version 3.80(TODO): 优化AutoGen插件主题并设计一系列衍生插件\n- version 3.70: 引入Mermaid绘图，实现GPT画脑图等功能   \n- version 3.60: 引入AutoGen作为新一代插件的基石\n- version 3.57: 支持GLM3，星火v3，文心一言v4，修复本地模型的并发BUG\n- version 3.56: 支持动态追加基础功能按钮，新汇报PDF汇总页面\n- version 3.55: 重构前端界面，引入悬浮窗口与菜单栏\n- version 3.54: 新增动态代码解释器（Code Interpreter）（待完善）\n- version 3.53: 支持动态选择不同界面主题，提高稳定性\u0026解决多用户冲突问题\n- version 3.50: 使用自然语言调用本项目的所有函数插件（虚空终端），支持插件分类，改进UI，设计新主题\n- version 3.49: 支持百度千帆平台和文心一言\n- version 3.48: 支持阿里达摩院通义千问，上海AI-Lab书生，讯飞星火\n- version 3.46: 支持完全脱手操作的实时语音对话\n- version 3.45: 支持自定义ChatGLM2微调模型\n- version 3.44: 正式支持Azure，优化界面易用性\n- version 3.4: +arxiv论文翻译、latex论文批改功能\n- version 3.3: +互联网信息综合功能\n- version 3.2: 函数插件支持更多参数接口 (保存对话功能, 解读任意语言代码+同时询问任意的LLM组合)\n- version 3.1: 支持同时问询多个gpt模型！支持api2d，支持多个apikey负载均衡\n- version 3.0: 对chatglm和其他小型llm的支持\n- version 2.6: 重构了插件结构，提高了交互性，加入更多插件\n- version 2.5: 自更新，解决总结大工程源代码时文本过长、token溢出的问题\n- version 2.4: 新增PDF全文翻译功能; 新增输入区切换位置的功能\n- version 2.3: 增强多线程交互性\n- version 2.2: 函数插件支持热重载\n- version 2.1: 可折叠式布局\n- version 2.0: 引入模块化函数插件\n- version 1.0: 基础功能\n\nGPT Academic开发者QQ群：`610599535`\n\n- 已知问题\n    - 某些浏览器翻译插件干扰此软件前端的运行\n    - 官方Gradio目前有很多兼容性问题，请**务必使用`requirement.txt`安装Gradio**\n\n```mermaid\ntimeline LR\n    title GPT-Academic项目发展历程\n    section 2.x\n        1.0~2.2: 基础功能: 引入模块化函数插件: 可折叠式布局: 函数插件支持热重载\n        2.3~2.5: 增强多线程交互性: 新增PDF全文翻译功能: 新增输入区切换位置的功能: 自更新\n        2.6: 重构了插件结构: 提高了交互性: 加入更多插件\n    section 3.x\n        3.0~3.1: 对chatglm支持: 对其他小型llm支持: 支持同时问询多个gpt模型: 支持多个apikey负载均衡\n        3.2~3.3: 函数插件支持更多参数接口: 保存对话功能: 解读任意语言代码: 同时询问任意的LLM组合: 互联网信息综合功能\n        3.4: 加入arxiv论文翻译: 加入latex论文批改功能\n        3.44: 正式支持Azure: 优化界面易用性\n        3.46: 自定义ChatGLM2微调模型: 实时语音对话\n        3.49: 支持阿里达摩院通义千问: 上海AI-Lab书生: 讯飞星火: 支持百度千帆平台 \u0026 文心一言\n        3.50: 虚空终端: 支持插件分类: 改进UI: 设计新主题\n        3.53: 动态选择不同界面主题: 提高稳定性: 解决多用户冲突问题\n        3.55: 动态代码解释器: 重构前端界面: 引入悬浮窗口与菜单栏\n        3.56: 动态追加基础功能按钮: 新汇报PDF汇总页面\n        3.57: GLM3, 星火v3: 支持文心一言v4: 修复本地模型的并发BUG\n        3.60: 引入AutoGen\n        3.70: 引入Mermaid绘图: 实现GPT画脑图等功能\n        3.80(TODO): 优化AutoGen插件主题: 设计衍生插件\n\n```\n\n\n### III：主题\n可以通过修改`THEME`选项（config.py）变更主题\n1. `Chuanhu-Small-and-Beautiful` [网址](https://github.com/GaiZhenbiao/ChuanhuChatGPT/)\n\n\n### IV：本项目的开发分支\n\n1. `master` 分支: 主分支，稳定版\n2. `frontier` 分支: 开发分支，测试版\n3. 如何[接入其他大模型](request_llms/README.md)\n\n### V：参考与学习\n\n```\n代码中参考了很多其他优秀项目中的设计，顺序不分先后：\n\n# 清华ChatGLM2-6B:\nhttps://github.com/THUDM/ChatGLM2-6B\n\n# 清华JittorLLMs:\nhttps://github.com/Jittor/JittorLLMs\n\n# ChatPaper:\nhttps://github.com/kaixindelele/ChatPaper\n\n# Edge-GPT:\nhttps://github.com/acheong08/EdgeGPT\n\n# ChuanhuChatGPT:\nhttps://github.com/GaiZhenbiao/ChuanhuChatGPT\n\n# Oobabooga one-click installer:\nhttps://github.com/oobabooga/one-click-installers\n\n# More：\nhttps://github.com/gradio-app/gradio\nhttps://github.com/fghrsh/live2d_demo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-husky%2Fgpt_academic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinary-husky%2Fgpt_academic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-husky%2Fgpt_academic/lists"}