Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b61e84a229
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (orgName) { | ||
| logRequest(); | ||
| } |
There was a problem hiding this comment.
Record requests before throw paths without org metadata
aiproxy.requests is now emitted only when orgName is already known or later in the request flow, so requests without an orgName can exit without being counted when proxyV1 throws before the later logRequest() calls (for example the vercel-ai validation error path, or provider/secret lookup exceptions from fetchModelLoop). Before this change, the metric was emitted unconditionally near the start, so this regresses request-count accuracy for failed calls.
Useful? React with 👍 / 👎.
No description provided.