mirror of
https://github.com/alibaba/higress.git
synced 2026-04-21 03:57:28 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user