mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
CheckBatchCost's cost-tracking path downloaded a completed batch's output file and parsed it into a List[dict], keeping the full base64 image payloads of Gemini image-gen responses resident on top of the raw bytes; two json.dumps(..., indent=4) debug calls also re-serialized that whole structure unconditionally because the argument was evaluated before the log-level check. The scheduled job had no leader election, so every worker/pod polled and buffered the same files at once. - add calculate_batch_cost_and_usage_from_content: a single-pass fold over the JSONL output that keeps peak memory bounded to the raw bytes plus one row, preserving cost/usage/model/status behavior across providers - guard the json.dumps debug serialization behind isEnabledFor(DEBUG) - gate the poll behind PodLockManager so only the lock holder runs each cycle when Redis is configured, injected via the constructor with a fallback to the shared manager; unchanged unlocked behavior with no Redis Fixes #33955
146 lines
2.5 KiB
JSON
146 lines
2.5 KiB
JSON
{
|
|
"reportAny": {
|
|
"limit": 37484
|
|
},
|
|
"reportArgumentType": {
|
|
"limit": 2704
|
|
},
|
|
"reportAssignmentType": {
|
|
"limit": 330
|
|
},
|
|
"reportAttributeAccessIssue": {
|
|
"limit": 516
|
|
},
|
|
"reportCallIssue": {
|
|
"limit": 124
|
|
},
|
|
"reportConstantRedefinition": {
|
|
"limit": 59
|
|
},
|
|
"reportDeprecated": {
|
|
"limit": 326
|
|
},
|
|
"reportDuplicateImport": {
|
|
"limit": 42
|
|
},
|
|
"reportExplicitAny": {
|
|
"limit": 10389
|
|
},
|
|
"reportFunctionMemberAccess": {
|
|
"limit": 11
|
|
},
|
|
"reportGeneralTypeIssues": {
|
|
"limit": 227
|
|
},
|
|
"reportIncompatibleMethodOverride": {
|
|
"limit": 78
|
|
},
|
|
"reportIncompatibleVariableOverride": {
|
|
"limit": 12
|
|
},
|
|
"reportInconsistentOverload": {
|
|
"limit": 18
|
|
},
|
|
"reportIndexIssue": {
|
|
"limit": 37
|
|
},
|
|
"reportInvalidTypeForm": {
|
|
"limit": 35
|
|
},
|
|
"reportInvalidTypeVarUse": {
|
|
"limit": 5
|
|
},
|
|
"reportMatchNotExhaustive": {
|
|
"limit": 0
|
|
},
|
|
"reportMissingParameterType": {
|
|
"limit": 5900
|
|
},
|
|
"reportMissingTypeArgument": {
|
|
"limit": 15903
|
|
},
|
|
"reportMissingTypeStubs": {
|
|
"limit": 41
|
|
},
|
|
"reportOperatorIssue": {
|
|
"limit": 0
|
|
},
|
|
"reportOptionalCall": {
|
|
"limit": 0
|
|
},
|
|
"reportOptionalIterable": {
|
|
"limit": 0
|
|
},
|
|
"reportOptionalMemberAccess": {
|
|
"limit": 1085
|
|
},
|
|
"reportOptionalOperand": {
|
|
"limit": 0
|
|
},
|
|
"reportOptionalSubscript": {
|
|
"limit": 0
|
|
},
|
|
"reportPossiblyUnboundVariable": {
|
|
"limit": 77
|
|
},
|
|
"reportPrivateUsage": {
|
|
"limit": 2437
|
|
},
|
|
"reportRedeclaration": {
|
|
"limit": 12
|
|
},
|
|
"reportReturnType": {
|
|
"limit": 225
|
|
},
|
|
"reportTypedDictNotRequiredAccess": {
|
|
"limit": 27
|
|
},
|
|
"reportUndefinedVariable": {
|
|
"limit": 0
|
|
},
|
|
"reportUnknownArgumentType": {
|
|
"limit": 45894
|
|
},
|
|
"reportUnknownLambdaType": {
|
|
"limit": 113
|
|
},
|
|
"reportUnknownMemberType": {
|
|
"limit": 40539
|
|
},
|
|
"reportUnknownParameterType": {
|
|
"limit": 20403
|
|
},
|
|
"reportUnknownVariableType": {
|
|
"limit": 32139
|
|
},
|
|
"reportUnnecessaryCast": {
|
|
"limit": 177
|
|
},
|
|
"reportUnnecessaryComparison": {
|
|
"limit": 1025
|
|
},
|
|
"reportUnnecessaryContains": {
|
|
"limit": 7
|
|
},
|
|
"reportUnnecessaryIsInstance": {
|
|
"limit": 1209
|
|
},
|
|
"reportUntypedBaseClass": {
|
|
"limit": 165
|
|
},
|
|
"reportUntypedFunctionDecorator": {
|
|
"limit": 33
|
|
},
|
|
"reportUnusedClass": {
|
|
"limit": 33
|
|
},
|
|
"reportUnusedFunction": {
|
|
"limit": 205
|
|
},
|
|
"reportUnusedImport": {
|
|
"limit": 1005
|
|
},
|
|
"reportUnusedVariable": {
|
|
"limit": 1297
|
|
}
|
|
}
|