From 26d502cdc5f7a0cd510aa39fc957928654d6c927 Mon Sep 17 00:00:00 2001 From: margrop <1731827+margrop@users.noreply.github.com> Date: Fri, 4 Dec 2026 05:25:25 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=90=8C=E6=AD=A5=20AI=20=E7=94=A8?= =?UTF-8?q?=E9=87=8F=E6=98=8E=E7=BB=86=E4=BF=9D=E7=95=99=E5=A4=A9=E6=95=B0?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - README 与 README.en 完整环境变量表补充 AI_COMPLETION_RETENTION_DAYS - 说明仅清理过期明细,不影响额度与汇总统计 --- README.en.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.en.md b/README.en.md index da31565b..54d2165e 100644 --- a/README.en.md +++ b/README.en.md @@ -540,6 +540,7 @@ The most common variables are below; see the collapsed table and [`.env.example` | `AI_DAILY_LIMIT` | Daily AI limit per user | `0` (unlimited) | AI actions each regular user can start per day; admins are not limited. The value saved under **Settings → User Management** takes precedence | | `AI_CONCURRENCY_LIMIT` | AI concurrency per model | `5` | How many AI calls the same provider, address and model may run at once (1–100). Further calls wait in a queue, avoiding 429 errors from the provider. The value saved under **Settings → User Management** takes precedence | | `FIGURE_REVIEW` | AI figure self-check | `false` | When `true`, after redrawing a figure the original and result are sent side by side to AI for comparison and correction; adds one AI call with images per figure and takes longer. The switch saved by an admin under **Settings → General** takes precedence | +| `AI_COMPLETION_RETENTION_DAYS` | AI usage detail retention | `180` | Purges expired AiCompletion rows only; AiUsage/AiDailyUsage quota and totals are unaffected; accepts 1–3650 days | | `TTS_MODE` | How animation narration is voiced | `browser` | `browser` uses the browser's voice; `minimax`, `qwen`, `glm`, `stepfun`, `volcengine`, `volcengine-agent` or `openai` uses a cloud voice with that channel's API key (Doubao Speech uses `VOLCENGINE_TTS_API_KEY`; OpenAI uses the active OpenAI configuration). The value saved under **Settings → AI → Voice narration** takes precedence | **AI** (settings saved in the web UI take precedence over environment variables) diff --git a/README.md b/README.md index ee658b8a..8da4d19f 100644 --- a/README.md +++ b/README.md @@ -538,6 +538,7 @@ GeoGebra 的文字、不等式和标签参数按共用命令清单校验,重 | `AI_DAILY_LIMIT` | 每人每日 AI 次数 | `0`(不限制) | 普通用户每天可发起的 AI 操作次数,管理员不受限制;「设置 → 用户管理」中保存的值优先 | | `AI_CONCURRENCY_LIMIT` | 同一模型 AI 并发上限 | `5` | 同一渠道、地址和模型同时进行的 AI 调用数量(1~100),超出的调用排队等待,避免服务商返回 429;「设置 → 用户管理」中保存的值优先 | | `FIGURE_REVIEW` | AI 配图比对校正 | `false` | 为 `true` 时重绘配图后把原图与结果并排交给 AI 比对并修正差异;每张配图多一次带图片的 AI 调用,耗时更长。管理员在「设置 → 通用」中保存的开关优先 | +| `AI_COMPLETION_RETENTION_DAYS` | AI 用量明细保留天数 | `180` | 只清理过期的 AiCompletion 明细,不影响 AiUsage/AiDailyUsage 额度与汇总统计;允许 1~3650 天 | | `TTS_MODE` | 动画语音讲解的朗读方式 | `browser` | `browser` 为浏览器本地语音;`minimax`、`qwen`、`glm`、`stepfun`、`volcengine`、`volcengine-agent`、`openai` 为云端语音,复用对应渠道的 API Key(豆包语音使用 `VOLCENGINE_TTS_API_KEY`,OpenAI 使用当前激活的 OpenAI 配置)。「设置 → AI 设置 → 语音讲解」中保存的值优先 | **AI 配置**(网页中保存的配置优先于环境变量)