Skip to content
This repository was archived by the owner on Oct 8, 2026. It is now read-only.

Commit 722f37f

Browse files
rootclaude
andcommitted
release: v1.9.89 usage detail effort English labels (low/medium/high/xhigh)
Show reasoning_effort as English tags in admin usage events instead of Chinese 低/中/高/极高. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b8b0224 commit 722f37f

13 files changed

Lines changed: 35 additions & 45 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
把 **Grok OIDC 登录态** 转成 **OpenAI / Anthropic 兼容 API**,并附带 Web 管理台:多 API Key、多账号轮询、设备码 / SSO / JSON 导入导出、协议注册。
44

5-
**当前版本:v1.9.88** · 使用明细展示思考强度 · Token 过期移出轮询 · SSO 续期自愈
5+
**当前版本:v1.9.89** · 使用明细展示思考强度 · Token 过期移出轮询 · SSO 续期自愈
66

77
[![GHCR](https://img.shields.io/badge/ghcr.io-hm2899%2Fgrokcli--2api-blue)](https://github.com/users/HM2899/packages/container/package/grokcli-2api)
88
[![Release](https://img.shields.io/github/v/release/HM2899/grokcli-2api?display_name=tag)](https://github.com/HM2899/grokcli-2api/releases)
99

1010
| 镜像(全小写) | 说明 |
1111
|----------------|------|
12-
| `ghcr.io/hm2899/grokcli-2api:1.9.88` | 当前版本 |
12+
| `ghcr.io/hm2899/grokcli-2api:1.9.89` | 当前版本 |
1313
| `ghcr.io/hm2899/grokcli-2api:latest` | 最近 `v*` tag |
1414
| `ghcr.io/hm2899/grokcli-2api:edge` | `main` 最新 |
1515

@@ -68,11 +68,11 @@
6868

6969
---
7070

71-
## 本版本重点(v1.9.88)
71+
## 本版本重点(v1.9.89)
7272

7373
| 能力 | 行为 |
7474
|------|------|
75-
| **使用明细 · 思考强度** | 管理台「使用明细」新增「思考强度」列:低 / 中 / 高 / 极高 |
75+
| **使用明细 · 思考强度** | 管理台「使用明细」新增「思考强度」列:`low` / `medium` / `high` / `xhigh` |
7676
| **协议覆盖** | OpenAI `reasoning_effort` · Anthropic `thinking` / `budget_tokens` · Responses `reasoning.effort` |
7777
| **落库** | 写入 usage event `detail.reasoning_effort`(兼容 `thinking_intensity`);列表接口透出 |
7878
| **预算映射** | Anthropic `budget_tokens` 与上游一致:≤4k low · ≤16k medium · ≤48k high · 更大 xhigh |
@@ -162,7 +162,7 @@ ghcr.io/hm2899/grokcli-2api
162162
**正确示例:**
163163

164164
```bash
165-
docker pull ghcr.io/hm2899/grokcli-2api:1.9.88
165+
docker pull ghcr.io/hm2899/grokcli-2api:1.9.89
166166
# 或
167167
docker pull ghcr.io/hm2899/grokcli-2api:latest
168168
```
@@ -201,7 +201,7 @@ services:
201201
retries: 10
202202

203203
grokcli-2api:
204-
image: ghcr.io/hm2899/grokcli-2api:1.9.88
204+
image: ghcr.io/hm2899/grokcli-2api:1.9.89
205205
ports:
206206
# 只映射应用;不要给 postgres/redis 加 ports
207207
- "3000:3000"
@@ -450,13 +450,13 @@ docker exec grokcli-2api sh -c 'echo TZ=$TZ; date'
450450
```bash
451451
# 1) app.py 中 APP_VERSION 必须与 git tag 一致(镜像路径全小写)
452452
# 2) 推 main → edge + 版本号;推 v* tag → 额外 latest + GitHub Release
453-
git add -A && git commit -m "release: v1.9.88"
453+
git add -A && git commit -m "release: v1.9.89"
454454
git push origin main
455-
git tag -a v1.9.88 -m "v1.9.88"
456-
git push origin v1.9.88
457-
gh release create v1.9.88 --title "v1.9.88 使用明细思考强度" --notes-file - <<'EOF'
455+
git tag -a v1.9.89 -m "v1.9.89"
456+
git push origin v1.9.89
457+
gh release create v1.9.89 --title "v1.9.89 usage detail effort English labels" --notes-file - <<'EOF'
458458
## Highlights
459-
- 使用明细新增思考强度列(低/中/高/极高)
459+
- 使用明细新增思考强度列(low / medium / high / xhigh)
460460
- 记录 OpenAI / Anthropic / Responses 请求的 reasoning_effort
461461
- 兼容 budget_tokens → effort 映射
462462
EOF
@@ -467,7 +467,7 @@ gh run list --workflow=docker-publish.yml --limit 3
467467
成功后拉取(**必须小写**):
468468

469469
```bash
470-
docker pull ghcr.io/hm2899/grokcli-2api:1.9.88
470+
docker pull ghcr.io/hm2899/grokcli-2api:1.9.89
471471
docker pull ghcr.io/hm2899/grokcli-2api:latest
472472
```
473473

@@ -525,8 +525,8 @@ turnstile-solver/ # 本地过盾(内联)
525525

526526
## 版本
527527

528-
- **v1.9.88**(当前)
529-
- **使用明细 · 思考强度**:管理台「使用明细」展示 low/medium/high/xhigh(低/中/高/极高)
528+
- **v1.9.89**(当前)
529+
- **使用明细 · 思考强度**:管理台「使用明细」直接展示英文标签 low / medium / high / xhigh
530530
- 从 OpenAI `reasoning_effort`、Anthropic `thinking`/`budget_tokens`、Responses `reasoning.effort` 提取并写入 usage detail
531531
- 列表接口透出 `reasoning_effort`;点击行可看完整字段
532532
- 继承 v1.9.87:Token 过期移出轮询 · SSO 续期自愈 · 首页状态统计

‎app.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
import history_compact
5656
from models import load_models_from_cache, resolve_model
5757

58-
APP_VERSION = "1.9.88"
58+
APP_VERSION = "1.9.89"
5959

6060
# Per-request usage context (client IP / path / UA) for request-level ledger rows.
6161
_usage_request_ctx: ContextVar[dict[str, Any] | None] = ContextVar(

‎static/admin/accounts.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,6 @@ <h3>JSON 导入 / 导出</h3>
483483
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
484484
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
485485
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
486-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
486+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
487487
</body>
488488
</html>

‎static/admin/guide.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ <h3>接入信息</h3>
178178
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
179179
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
180180
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
181-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
181+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
182182
</body>
183183
</html>

‎static/admin/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,6 @@ <h3>快速操作</h3>
210210
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
211211
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
212212
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
213-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
213+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
214214
</body>
215215
</html>

‎static/admin/keys.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,6 @@ <h3>密钥列表</h3>
206206
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
207207
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
208208
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
209-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
209+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
210210
</body>
211211
</html>

‎static/admin/logs.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,6 @@ <h3>任务日志</h3>
220220
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
221221
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
222222
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
223-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
223+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
224224
</body>
225225
</html>

‎static/admin/models.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ <h3>模型列表</h3>
177177
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
178178
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
179179
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
180-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
180+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
181181
</body>
182182
</html>

‎static/admin/settings.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,6 @@ <h2>sub2api 导入</h2>
477477
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
478478
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
479479
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
480-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
480+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
481481
</body>
482482
</html>

‎static/admin/usage.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ <h3>使用明细</h3>
304304
<th style="width:100px">合计 token</th>
305305
<th style="width:100px">缓存 token</th>
306306
<th style="width:100px">推理 token</th>
307-
<th style="width:90px" title="请求思考强度 reasoning_effort / thinking">思考强度</th>
307+
<th style="width:100px" title="reasoning_effort / thinking · low · medium · high · xhigh">思考强度</th>
308308
<th style="width:90px">首字</th>
309309
<th style="width:90px">完成</th>
310310
<th style="width:70px">结果</th>
@@ -330,6 +330,6 @@ <h3>使用明细</h3>
330330
<script src="/static/dist/api.c4edde3d16.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
331331
<script src="/static/dist/state.da9974e23b.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
332332
<script src="/static/dist/auth.fa7b1e0e4d.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
333-
<script src="/static/dist/core.107422075a.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
333+
<script src="/static/dist/core.63c43151f2.js" onerror="window.__g2aScriptFailed&&__g2aScriptFailed(this)"></script>
334334
</body>
335335
</html>

0 commit comments

Comments
 (0)