fix(ai-statistics): 修复请求模型上下文未设置问题 || fix(ai-statistics): Fix the problem that the request model context is not set (#3380)

Co-authored-by: rinfx <yucheng.lxr@alibaba-inc.com>
This commit is contained in:
lvshui
2026-02-04 21:11:55 +08:00
committed by GitHub
parent 07cfdaf88a
commit 9edb709ca4

View File

@@ -567,6 +567,7 @@ func onHttpRequestBody(ctx wrapper.HttpContext, config AIStatisticsConfig, body
}
}
}
ctx.SetContext(tokenusage.CtxKeyRequestModel, requestModel)
setSpanAttribute(ArmsRequestModel, requestModel)
// Set the number of conversation rounds