mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
fix(batches): address Greptile type-discipline feedback
Add Final to the reasoning_tokens local var and type the _batch_cost_result test helper's parameters, per review feedback on PR #37208.
This commit is contained in:
parent
682032dd1b
commit
ff833a5872
2 changed files with 167 additions and 356 deletions
|
|
@ -165,7 +165,9 @@ def _classify_output_line_stats(
|
|||
custom_llm_provider=custom_llm_provider,
|
||||
call_type=CallTypes.aretrieve_batch.value,
|
||||
)
|
||||
reasoning_tokens = usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
|
||||
reasoning_tokens: Final = (
|
||||
usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
|
||||
)
|
||||
yield _BatchOutputLineStats(
|
||||
cost=line_cost,
|
||||
prompt_tokens=usage.prompt_tokens,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue