Requests can be tagged: metadata, x-llmgw-tags and the user field on the usage record, and counted by the tags router.tag_labels names

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 19:45:37 +02:00
1 parent e59ff52932
commit 29a7347df2
19 files changed
+436 -17

No files matched your search

@@ -0,0 +1,6 @@
-- What a client said about a request: OpenAI's user field (end_user, the
-- caller's own name for whoever it serves) and its metadata or
-- x-llmgw-tags (tags, a JSON object of strings, keys sorted). For
-- attributing spend inside a project; never the text.
ALTER TABLE usage ADD COLUMN end_user TEXT NOT NULL DEFAULT '';
ALTER TABLE usage ADD COLUMN tags TEXT NOT NULL DEFAULT '';