Fix model usage attribution for cached SAM2/SAM3 requests - #2751
Conversation
|
👋 Thanks for the pull request! Here is how automated Claude review works here, so you spend credits (and reviewer time) wisely. 🚦 This PR is marked Ready for review, so automated Claude review will run — and every pass spends real credits. Warning 💸 The Claude reviewer bills in credits, not vibesAutomated review spins up a real agent that reads real code and spends real credits on every pass. It is glad to help — but it is not a rubber duck, a linter you poke in a loop, or a substitute for reading the contributing guide. Treat it like an expensive senior reviewer whose time you booked, and show up prepared. Draft when unsure, Ready when you mean it:
However you get there, arrive prepared:
Reviews are not free. A draft costs nothing to review; a Ready PR is a promise that it is worth reviewing.
|
|
🤖 Claude review started at commit New commits are not auto-reviewed. Add the |
|
😎 PR passes the vibe-check and trust-me-bro verification. |
Summary
Why
The inference-models SAM2/SAM3 adapters decorate infer_from_request(self, request). The model usage extractor did not inspect the request, so resource_id became unknown and API-key attribution could fall back to the caller that first loaded the cached model.
Linear: https://linear.app/roboflow/issue/INF-512/all-categorymodel-usage-rows-record-resource-idunknown-under-use
Testing