Fix indentation

This commit is contained in:
Shashank Harinath 2023-10-19 00:52:53 -07:00 committed by GitHub
parent 34e903d1f6
commit 17916b84f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,19 +111,19 @@ class CostManager(metaclass=Singleton):
return self.total_completion_tokens
def get_total_cost(self):
"""
Get the total cost of API calls.
Returns:
float: The total cost of API calls.
"""
return self.total_cost
def get_costs(self) -> Costs:
"""Get all costs"""
return Costs(self.total_prompt_tokens, self.total_completion_tokens, self.total_cost, self.total_budget)
def get_total_cost(self):
"""
Get the total cost of API calls.
Returns:
float: The total cost of API calls.
"""
return self.total_cost
def get_costs(self) -> Costs:
"""Get all costs"""
return Costs(self.total_prompt_tokens, self.total_completion_tokens, self.total_cost, self.total_budget)
def log_and_reraise(retry_state):