track reasoning token and cached token (#1985)

This commit is contained in:
Shuchang Zheng 2025-03-20 16:42:57 -07:00 committed by GitHub
parent 185464f8ec
commit eb3eb4eede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 112 additions and 16 deletions

View file

@ -108,6 +108,8 @@ def convert_to_step(step_model: StepModel, debug_enabled: bool = False) -> Step:
organization_id=step_model.organization_id,
input_token_count=step_model.input_token_count,
output_token_count=step_model.output_token_count,
reasoning_token_count=step_model.reasoning_token_count,
cached_token_count=step_model.cached_token_count,
step_cost=step_model.step_cost,
)