feat(log): 模型调用日志提拉至 INFO 级别 - #227
Open
openjiuwen-sync-bot[bot] wants to merge 1 commit into
Open
Conversation
|
|
|
head_sha:
|
openjiuwenai
force-pushed
the
sync/pr-1790
branch
from
August 6, 2026 08:08
57ebfb8 to
cd7c01a
Compare
|
head_sha:
|
模型请求体/响应内容/token 用量/延迟/tool_calls 五类日志由 DEBUG 提至 INFO,在默认 INFO 级别即可观测,无需开 DEBUG;错误日志由 DEBUG 提至 ERROR,与事件语义一致。 回调注册门控由 WORKFLOW_LOG_LEVEL ≤ DEBUG 放宽至 ≤ INFO,否则默认 INFO 下回调不注册、级别提升不生效。门控仅控制 input/output 回调——二者每次 调用都触发,门控用于在 WARNING 下省掉回调体里 json.dumps(完整 messages) 的开销。 错误回调改为无条件注册:错误是低频高重要事件,原实现受门控约束导致 WARNING 下错误不可见;错误回调仅在调用失败时触发,成功路径零开销,故 始终注册不引入热路径成本。
openjiuwenai
force-pushed
the
sync/pr-1790
branch
from
August 6, 2026 08:20
cd7c01a to
e290b91
Compare
|
head_sha:
|
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.
Paired: GitHub #227 ↔ GitCode !1790
What type of PR is this?
/kind
Self-checklist:(请自检,在[ ]内打上x,我们将检视你的完成情况,否则会导致pr无法合入)