mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-30 08:37:12 +08:00
fix: 修复多次设置 input
This commit is contained in:
1 parent
3fdd61a8cc
commit
14c6451dcd
1 file changed
-3
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user