Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#11)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0)
- [github.com/asottile/reorder-python-imports: v3.12.0 → v3.14.0](asottile/reorder-python-imports@v3.12.0...v3.14.0)
- [github.com/psf/black: 23.12.1 → 24.10.0](psf/black@23.12.1...24.10.0)
- [github.com/asottile/blacken-docs: 1.16.0 → 1.19.0](adamchainz/blacken-docs@1.16.0...1.19.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 23, 2024
1 parent 3c48a40 commit e83184f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-ast
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.19.0
hooks:
- id: blacken-docs

Expand Down
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,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 e83184f

Please sign in to comment.