mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix(batches): revert invalid Final on a loop-scoped local
Some checks failed
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Some checks failed
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
basedpyright rejects a Final variable assigned inside a loop body (reportGeneralTypeIssues); the type-discipline checker doesn't flag this line without Final either, so the annotation only bought a basedpyright budget regression.
This commit is contained in:
parent
98447e0043
commit
d989f172e9
1 changed files with 1 additions and 3 deletions
|
|
@ -170,9 +170,7 @@ def _classify_output_line_stats(
|
|||
custom_llm_provider=custom_llm_provider,
|
||||
call_type=CallTypes.aretrieve_batch.value,
|
||||
)
|
||||
reasoning_tokens: Final = (
|
||||
usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
|
||||
)
|
||||
reasoning_tokens = usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
|
||||
yield _BatchOutputLineStats(
|
||||
cost=line_cost,
|
||||
prompt_tokens=usage.prompt_tokens,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue