Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2024
1 parent a7c1e31 commit 41f8d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ async def _calculate_per_user_costs(
created_at_gte=created_at_gte,
)
threads_cache: dict[int, threads.Thread] = {}
per_user_per_model_input_tokens: dict[int, dict[gpt.OpenAIModel, int]] = (
defaultdict(lambda: defaultdict(int))
)
per_user_per_model_input_tokens: dict[
int, dict[gpt.OpenAIModel, int]
] = defaultdict(lambda: defaultdict(int))
for message in messages:
if message["role"] != "user":
continue
Expand Down

0 comments on commit 41f8d87

Please sign in to comment.