fix: 修复多次设置 input

This commit is contained in:
yokowu
2025-07-21 22:50:52 +08:00
parent 3fdd61a8cc
commit 14c6451dcd

View File

@@ -115,9 +115,6 @@ func (r *ProxyRepo) Record(ctx context.Context, record *domain.RecordParam) erro
if record.OutputTokens > 0 {
up.AddOutputTokens(record.OutputTokens)
}
if t.InputTokens == 0 && record.InputTokens > 0 {
up.SetInputTokens(record.InputTokens)
}
if t.CodeLines > 0 {
up.AddCodeLines(record.CodeLines)
}