Skip to content

Commit 643fa6b

Browse files
authored
Merge pull request #1714 from silentoplayz/codex/docs-support-analytics-stateless
docs: explain stateless API usage in Analytics
2 parents fe8b55a + 014543c commit 643fa6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • docs/features/administration/analytics

‎docs/features/administration/analytics/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Tokens are the units that language models use to process text. Both the **input*
264264

265265
### How Token Tracking Works
266266

267-
Open WebUI automatically captures token usage from model responses and stores it with each message. The Analytics feature aggregates this data to show:
267+
Open WebUI stores reported token usage on saved assistant messages. A stateless call to `/api/chat/completions` that omits both `chat_id` and `parent_id` can return usage to the API caller without saving an assistant message, so that usage is outside the Analytics totals. Analytics aggregates saved usage to show:
268268

269269
- **Input tokens** - Tokens in user prompts and context
270270
- **Output tokens** - Tokens in model responses

0 commit comments

Comments
 (0)