mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-09 18:06:50 +08:00
When multiple OAuth providers share an account email, the existing "Use OAuth" debug lines are ambiguous and hard to correlate with management usage stats. Include provider, auth file, and auth index in the selection log, and only compute these fields when debug logging is enabled to avoid impacting normal request performance. Before: [debug] Use OAuth [email protected] for model gemini-3-flash-preview [debug] Use OAuth [email protected] (project-1234) for model gemini-3-flash-preview After: [debug] Use OAuth provider=antigravity auth_file=antigravity-user_example_com.json auth_index=1a2b3c4d5e6f7788 account="[email protected]" for model gemini-3-flash-preview [debug] Use OAuth provider=gemini-cli [email protected] auth_index=99aabbccddeeff00 account="[email protected] (project-1234)" for model gemini-3-flash-preview