fix(logging): Quota Guard 基线日志增加供应商标识并移除冗余启动日志#139
Merged
Conversation
- load_baseline() 新增可选 vendor 参数,日志输出包含供应商名称(如 Quota guard [anthropic]: loaded baseline ...) - 移除 lifespan() 中 coding-proxy started 日志,该信息已由 Rich Banner 和 uvicorn 原生日志覆盖 🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
load_baseline()新增可选vendor参数,启动日志由Quota guard: loaded baseline XXX tokens变为Quota guard [anthropic]: loaded baseline XXX tokens,便于多供应商场景下快速定位配额归属lifespan()中coding-proxy started: host=... port=...日志,该信息已被 Rich Banner 和 uvicorn 原生日志Uvicorn running on http://...覆盖,无需重复输出变更详情
src/coding/proxy/routing/quota_guard.pyload_baseline()新增vendor: str | None = None参数,有值时日志格式为Quota guard [vendor]: ...,无值时保持原格式(向后兼容)src/coding/proxy/server/app.pyvendor=tier.name;移除coding-proxy started日志预期启动日志效果
Test plan
🤖 Generated with Claude Code