# Repository Briefing: binary-husky/gpt_academic
> Source: https://repoforai.com/repo/binary-husky/gpt_academic (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/binary-husky/gpt_academic
- **Official Docs / Website**: https://github.com/binary-husky/gpt_academic/wiki/online
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: Python
- **License**: GPL-3.0
- **Engineering Health**: B (51/100 · Maintenance 6/35 · Adoption 23/25 · Releases 11/20 · License 11/20)
- **Latest Release**: version3.91 (2024-12-19) — https://github.com/binary-husky/gpt_academic/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, API, GPU
- **Momentum**: 71,750 ★ total (+2 24h / +45 7d) · 8,276 forks
- **Topics**: `academic`, `chatglm-6b`, `chatgpt`, `gpt-4`, `large-language-models`
- **When to Use**: Best for: Researchers, labs, and engineering teams that repeatedly translate or revise papers, explain codebases, or compare responses across several model providers from one self-hosted interface. Skip if: You want a fully managed chat or bot-building service, or you require an offline deployment but cannot provision a local model and verify that the chosen plugins have no external dependencies.

## Overview
```text
### Architecture & Core Mechanics
`main.py` launches the Python application. Gradio provides the chat interface, with a FastAPI deployment path for mounting it under a URL subpath. The manifest pins FastAPI 0.110 and Gradio Client 0.8 and points directly to a hosted Gradio 3.32.15 wheel. `request_llms/` houses model adapters and optional backend-specific dependencies, separating model integration from the chat interface.

`core_functional.py` defines shortcuts that wrap user input with a configured prefix and suffix. `crazy_functional.py` and `crazy_functions/` organize Python plugins for tasks such as document processing and repository explanation. Users can select a plugin directly or invoke one through the natural-language terminal. PyPDF2, PyMuPDF, and LlamaIndex packages support document-related workflows, but their presence does not mean every chat request uses document parsing or retrieval.

### Key Capabilities & Differentiators
GPT Academic handles recurring research tasks from the chat interface: PDF translation and summarization, arXiv paper translation, full-manuscript LaTeX proofreading, and explanation of Python and C++ projects. It renders Mermaid diagrams and can save a conversation as readable HTML and restore it later. Plugins that need LaTeX require a deployment that includes it.

Users can submit the same prompt to multiple selected models in parallel. Hosted integrations include OpenAI, Azure, Qwen, Zhipu GLM, and Baidu Qianfan; local options include ChatGLM3, with an Ollama connection wizard added in version3.91. Multiple API keys can coexist in configuration. Parallel querying is useful for comparing answers, but each selected hosted backend receives its own request and is subject to its own quotas and billing.

### Trade-offs & Limitations
Compared with managed ChatGPT or Coze, GPT Academic gives teams control over where the interface runs, which providers it calls, and how Python plugins process documents. The cost is ownership of credentials, dependencies, and deployment. An API-only setup avoids local inference hardware but still depends on provider access and sends content to the selected services. A self-hosted UI is not an offline deployment: review the model backend and each enabled plugin before using sensitive drafts.

The direct Gradio wheel URL is a reproducibility concern: builds depend on a reachable artifact host unless the wheel is cached or mirrored. Replacing it with upstream Gradio should not be treated as a drop-in upgrade, given known frontend compatibility issues. Local inference shifts pressure to RAM or VRAM as model size and concurrency grow; the full CUDA and LaTeX image also increases storage and download requirements. Review GPL-3.0 obligations before distributing modified builds.

### Hardware & Deployment Guide
For a direct install, use an isolated Python environment (3.9 and 3.11 are listed), run `python -m pip install -r requirements.txt`, and start `python main.py`. Configuration precedence is environment variables, then `config_private.py`, then `config.py`. With Docker Compose, keep one service option and use host networking on Linux or port mapping with the port matched to `WEB_PORT`.

Start with the online-only image when inference is remote; select a LaTeX-enabled image for plugins that need it. The larger image includes CUDA and LaTeX. Local GPU deployment requires a compatible NVIDIA runtime and attention to `LOCAL_MODEL_DEVICE`; the optional local ChatGLM4 path lists at least 24 GB of VRAM. Version3.90patch1 added LlamaIndex integration; version3.91, released December 19, 2024, added timeline rollback and the Ollama wizard and fixed TTS issues. The Windows/macOS one-click package warns against paths with spaces or Chinese characters.
```

## Key Capabilities
```text
- Extension model: `core_functional.py` defines prompt shortcuts; `crazy_functional.py` and `crazy_functions/` organize Python function plugins.
- Model routing: Query multiple selected backends in parallel, including hosted providers and supported local models.
- Paper workflows: Translate or summarize PDFs, translate arXiv papers, and proofread full LaTeX manuscripts; use a LaTeX-enabled deployment for plugins that need it.
- Session recovery: Export and restore chats as HTML; version3.91 adds conversation timeline rollback.
- Deployment profiles: Choose an online-only Docker image, a LaTeX-enabled image, or a larger CUDA-plus-LaTeX image.
- Dependency constraint: `requirements.txt` points directly to a hosted Gradio 3.32.15 wheel and pins FastAPI and Gradio Client versions.
```

## Quick Start / Clone
```bash
git clone --depth=1 https://github.com/binary-husky/gpt_academic.git
    cd gpt_academic
```
