File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ def _calculate_token_usage(
104104 streaming_message_responses : Optional [List [str ]],
105105 count_tokens : Callable [..., Any ],
106106) -> None :
107- input_tokens : Optional [int ] = 0 # type: Optional[int]
108- input_tokens_cached : Optional [int ] = 0 # type: Optional[int]
109- output_tokens : Optional [int ] = 0 # type: Optional[int]
110- output_tokens_reasoning : Optional [int ] = 0 # type: Optional[int]
111- total_tokens : Optional [int ] = 0 # type: Optional[int]
107+ input_tokens : Optional [int ] = 0
108+ input_tokens_cached : Optional [int ] = 0
109+ output_tokens : Optional [int ] = 0
110+ output_tokens_reasoning : Optional [int ] = 0
111+ total_tokens : Optional [int ] = 0
112112
113113 if hasattr (response , "usage" ):
114114 input_tokens = _get_usage (response .usage , ["input_tokens" , "prompt_tokens" ])
You can’t perform that action at this time.
0 commit comments