From ffef0d3e4e831d70712602ac7b42cd102d115cfb Mon Sep 17 00:00:00 2001 From: argszero Date: Sat, 12 Sep 2026 13:26:55 +0800 Subject: [PATCH] docs: refresh two stale facts against their code arbiters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docs/architecture.md said the SQLite file was at "migration v10" while src/db.rs has SCHEMA_VERSION = 12 (v11/v12 landed after that text was written), and docs/plan-api-matrix.md said "13 个模型" while the catalog has held 14 since deepseek-v4-flash-vision-exp was added -- the doc commit 6d87213 postdates that model by 1h47m. Both lines now quote the arbiter instead of retyping the fact, so the next drift is visible: SCHEMA_VERSION for the schema, [[models]] plus catalog_gate's MODEL_COUNT for the catalog. --- docs/architecture.md | 2 +- docs/plan-api-matrix.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index c7e9ff3..c570126 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -16,7 +16,7 @@ | 层 | 选型 | |---|---| | 后端 | **Rust**(`rust-version 1.86`)+ axum + tokio + rusqlite | -| 数据库 | **SQLite**(单文件,`data/aitokenpool.db`,迁移 v10) | +| 数据库 | **SQLite**(单文件,`data/aitokenpool.db`,幂等迁移至 v12,见 `src/db.rs` 的 `SCHEMA_VERSION`) | | 加密 | AES-256-GCM(上游 key,`src/crypto.rs`)、argon2(密码哈希) | | 上游调用 | reqwest(非流式)+ SSE 流式转发(`src/sse.rs` 跨协议转换) | | 前端 | **原生 JS** 静态页(`ui/`,无构建步骤;i18n 中英双语) | diff --git a/docs/plan-api-matrix.md b/docs/plan-api-matrix.md index 791e028..25e8ad6 100644 --- a/docs/plan-api-matrix.md +++ b/docs/plan-api-matrix.md @@ -32,4 +32,4 @@ Base URL 统一由 AITokenPool 提供(`[server].public_url` 配置),设置 ## 4. 模型目录 -当前内置 13 个模型(DeepSeek / GLM / GPT / Claude / Gemini / 豆包 / MiniMax / 通义等),含 context window、vision 支持、缓存价与高峰价字段。模型列表可经管理端「模型管理」页 CRUD(需 admin 角色)。 +当前内置 14 个模型(DeepSeek / GLM / GPT / Claude / Gemini / 豆包 / MiniMax / 通义等),含 context window、vision 支持、缓存价与高峰价字段(数量与明细以 `config/config.example.toml` 的 `[[models]]` 为唯一真源,由 `src/catalog_gate.rs` 的 `MODEL_COUNT` 守卫)。模型列表可经管理端「模型管理」页 CRUD(需 admin 角色)。