File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 7878 "input" : 0.03e-3 ,
7979 "output" : 0.06e-3 ,
8080 },
81+ "gpt-4-turbo-preview" : {
82+ "input" : 0.01e-3 ,
83+ "output" : 0.03e-3 ,
84+ },
8185 "gpt-4-0125-preview" : {
8286 "input" : 0.01e-3 ,
8387 "output" : 0.03e-3 ,
Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ def bubble_up_costs_and_tokens(
176176 def add_step_costs_and_tokens (step : Dict [str , Any ]) -> Tuple [float , int ]:
177177 step_cost = step_tokens = 0
178178
179- if "cost" in step :
179+ if "cost" in step and step [ "cost" ] is not None :
180180 step_cost += step ["cost" ]
181- if "tokens" in step :
181+ if "tokens" in step and step [ "tokens" ] is not None :
182182 step_tokens += step ["tokens" ]
183183
184184 # Recursively add costs and tokens from nested steps
You can’t perform that action at this time.
0 commit comments