enable token usage by default (#2841)

This commit is contained in:
YuJitang
2026-05-10 22:00:57 +08:00
committed by GitHub
parent dfa4eb0c1a
commit 5127f08e1a
7 changed files with 21 additions and 6 deletions
@@ -110,7 +110,7 @@ Tracks LLM token consumption per model call and logs it at the `info` level. Use
```yaml
token_usage:
enabled: false
enabled: true
```
---
@@ -110,7 +110,7 @@ title:
```yaml
token_usage:
enabled: false
enabled: true
```
---
@@ -0,0 +1,10 @@
import { expect, test } from "vitest";
import { DEFAULT_LOCAL_SETTINGS } from "@/core/settings/local";
test("defaults token usage to header total plus per-turn breakdown", () => {
expect(DEFAULT_LOCAL_SETTINGS.tokenUsage).toEqual({
headerTotal: true,
inlineMode: "per_turn",
});
});