mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 06:43:23 +08:00
fix: 修复多次设置 input
This commit is contained in:
@@ -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