From d9b8874b04b37c79bdaf09141604ee195ef59846 Mon Sep 17 00:00:00 2001 From: argszero Date: Sun, 23 Aug 2026 12:58:57 +0800 Subject: [PATCH] chore(release): bump to v0.7.10 + changelog (rants 2026-08-22T23:20:00 / 2026-08-23T08:20:38) - Cargo.toml/Cargo.lock 0.7.9 -> 0.7.10 - ui/index.html cache-bust 20260822-9 -> 20260823-1 (5 refs) - CHANGELOG: v0.7.10 entry (70MB body limit #127 + P0 cache-billing fix #128) Gates: 145/145 cargo test + fmt + clippy + node --check all green. --- CHANGELOG.md | 5 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- ui/index.html | 10 +++++----- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a748a77..b9fb460 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes are recorded here. Versions follow [SemVer](https://semver.org/). +## v0.7.10 (2026-08-23) + +- **Request body limit raised to 70MB** — axum's default 2MB body limit rejected long LLM contexts (~1M token) and large image-base64 payloads with 413; gateway now applies `RequestBodyLimitLayer::new(70 * 1024 * 1024)` (rant 2026-08-22T23:20:00) +- **P0 cache-billing fix** — DeepSeek's native top-level `prompt_cache_hit_tokens` was silently dropped (cached=0 → cache hits billed at full miss price, ~30x overcharge); all three spellings (DeepSeek `prompt_cache_hit_tokens` / OpenAI `prompt_tokens_details.cached_tokens` / Anthropic `cache_read_input_tokens`) are now extracted with DeepSeek priority, and all 6 `record_usage` sites disjoint input (`prompt_tokens − cached`) so cached tokens are never double-billed; downstream `input_tokens` forwarding is disjoint too (rant 2026-08-23T08:20:38) + ## v0.7.9 (2026-08-22) - **API Key 名称持久化** — `POST /api/api-keys` now stores the submitted name (was hardcoded empty); new `PATCH /api/api-keys/:id` renames a key (owner-only); settings-page rename now calls the API and reloads instead of faking it in memory (rant 2026-08-22T17:21:39) diff --git a/Cargo.lock b/Cargo.lock index 49b7497..4e98692 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -51,7 +51,7 @@ dependencies = [ [[package]] name = "aitokenpool" -version = "0.7.9" +version = "0.7.10" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 1116650..1bc654e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aitokenpool" -version = "0.7.9" +version = "0.7.10" edition = "2021" description = "AI Token 共享池 — 企业 key 池 + 公共共享市场" license = "MIT" diff --git a/ui/index.html b/ui/index.html index 878f940..47244fc 100644 --- a/ui/index.html +++ b/ui/index.html @@ -5,7 +5,7 @@ AITokenPool - + @@ -682,9 +682,9 @@

使用模型

- - - - + + + +