enable token usage by default (#2841)
This commit is contained in:
@@ -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",
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user