Observe OpenRouter provider and quantization metadata #64
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rage/57-openrouter-quant-observability-r2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #57.
Why
A one-hour user capture on 2026-09-06 contained 252 OpenRouter calls with zero requests specifying
provider.quantizations. The same model slugs were served across multiple provider endpoints, so the model slug alone cannot identify serving precision.What this adds
X-OpenRouter-Metadata: enabledat the aiohttp middleware edge;provider;routing.jsonl, linked by immutable captureevent_id;quantization = "unknown"when it is undisclosed;events.jsonlunchanged.RED-first structure
Contract tests were committed before the corresponding implementation, including a dedicated metadata-header opt-in contract.
Validation status
Branch/diff structure has been audited. Full local
python -m unittest discover -s tests -vandnix flake checkstill need to run in a normal checkout before this leaves draft; no green claim is made here.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.