Auto Summaries & AI Commit Assistant
WordGit has a built-in Rust semantic diff engine and optional large language model (LLM) integration. When you commit, there's no need to rack your brain over which paragraphs you just changed: click Auto Summary (shown as AI Generate once a model is configured) to generate an accurate, concise commit message. Messages follow the interface language: with the English interface you get English messages, with the Chinese interface Chinese ones.
Two modes
1. Offline rule-based summary (works with zero configuration)
Even without configuring any API key, and even offline or on an intranet, you can click Auto Summary in the commit dialog and use it right away:
- The Rust core engine parses the structure of the
.docxdocument (heading levels, body paragraphs, tables, comments and so on) and compares the semantic additions, deletions and edits between the current draft and the latest commit; - It generates a structured commit title and a list of key changes, and fills them into the dialog for you to confirm or tweak.
2. High-quality summaries from an LLM (optional)
Click AI Settings… in the top-right corner of the commit dialog (Word opens the AI Summary page of the Settings window; WPS expands the same fields inside the commit dialog), or open Settings → AI Summary from the ribbon, to connect the cloud model you normally use or a local offline model. Both places save the same settings. WordGit sends the condensed change summary text to the selected endpoint only when you click AI Generate; it never uploads the full .docx binary.
Built-in one-click presets:
| Preset | Default endpoint | Default model | API key required |
|---|---|---|---|
| DeepSeek | https://api.deepseek.com/v1 | deepseek-chat | Yes |
| Qwen (Alibaba Cloud) | https://dashscope.aliyuncs.com/compatible-mode/v1 | qwen-plus | Yes |
| Zhipu GLM | https://open.bigmodel.cn/api/paas/v4 | glm-4-flash | Yes |
| OpenAI | https://api.openai.com/v1 | gpt-4o-mini | Yes |
| Ollama (local, offline) | http://localhost:11434/v1 | qwen2.5:7b | No |
| Custom OpenAI-compatible API | Any http:// or https:// address | Custom | As needed |
Local offline privacy option
If confidential documents must not send any change summaries to an external network, use the Ollama (local, offline) preset (http://localhost:11434/v1), or simply don't configure AI and rely on the built-in local rule-based summary.
First-commit rules
When a document is committed with WordGit for the first time (it has no history yet):
- The commit title is always
Initial versionwith the English interface (文档初始化with the Chinese interface); - The details automatically summarize the existing document's topic and key content (2–4 points) based on its outline and body excerpts, so you can easily recognize the initial baseline in the commit graph later.
Output style options
In Settings → AI Summary you can switch between two generation styles (except for the first commit):
- Title + short bullet points (default, recommended): a single concise commit title (at most 60 characters in English, 30 characters in Chinese), followed by a blank line and 2–4 key changes, each starting with
-; - Concise title only: just a single concise, accurate commit title; well suited to frequent small edits.
How API keys are stored securely
- Encrypted by the WordGit kernel: AI settings and the API key are stored by the WordGit kernel, shared by Word and WPS, and never written to a document repository. On Windows the key is encrypted with DPAPI and bound to the current Windows user; on Linux / macOS it is kept in a settings file readable only by the current user. The WPS add-in no longer stores the key in plain text and only fetches it right before sending an AI request.
- Automatic migration: AI settings saved by older versions (Word's registry entries, the WPS add-in storage) are moved into the kernel the first time they are read after upgrading, and the old copies are deleted.
- Leave the key empty to keep it: the settings page never shows a saved key. Saving with an empty API key field keeps the existing key; Clear Settings removes all AI settings including the key and returns you to the local rule-based summary.
- Redacted diagnostics: when you copy diagnostics, export a diagnostics package, or an error log is written, common token formats such as
Bearerandsk-*as well as the saved API key are replaced with[REDACTED].
