fix(utils.py): allow passing in custom pricing to completion_cost as params

This commit is contained in:
Krrish Dholakia 2024-05-16 16:23:53 -07:00
parent a0c5c402ae
commit a2a5884df1
3 changed files with 94 additions and 4 deletions

6
litellm/types/utils.py Normal file
View file

@ -0,0 +1,6 @@
from typing import List, Optional, Union, Dict, Tuple, Literal, TypedDict
class CostPerToken(TypedDict):
input_cost_per_token: float
output_cost_per_token: float