Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
Thanks for the PR and the clear write-up, @ren-diao! The The request is still tracked in #54283, where the maintainers can decide how they want to expose these fields, including on the new inference backend you mentioned. |
Issue for this PR
Closes #54283
Type of change
What does this PR do?
Adds
workspaceIDanduserIDto theGET /zen/go/v1/usageresponse. The handler already looks both up to find the key's Go usage row, so this only returns them. Clients that track several Go subscriptions can then identify a subscription by its owner rather than by the API key, which differs per key and changes on rotation.This file only serves keys that are not proxied. Migrated workspaces and
oc_sk_keys go to the new inference backend, which would need the same fields.How did you verify your code works?
Not run: the console needs its database and infrastructure, which I don't have. Both values come from the
authrow the handler already selects and has null-checked above. Separately, I confirmed the current response against a live Go key: it contains onlyusage.Screenshots / recordings
N/A
Checklist
🤖 Generated with Claude Code