Skip to content

Commit

Permalink
modify the strftime date format for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Laz4rz committed Apr 2, 2024
1 parent 04ae3d7 commit 055cfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openai_cost_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(
self.output_cost = output_cost
self.experiment_name = experiment_name
self.cost_upperbound = cost_upperbound
self.filename = f"{experiment_name}_cost_" + strftime("%Y%m%d_%H%M%S") + ".csv"
self.filename = f"{experiment_name}_cost_" + strftime("%Y-%m-%d_%H:%M:%S") + ".csv"


def update_cost(self, response: ChatCompletion) -> None:
Expand Down

0 comments on commit 055cfec

Please sign in to comment.