Skip to content

Commit

Permalink
fix: prevent a case that cause image generation not work
Browse files Browse the repository at this point in the history
chore: bump ruff-pre-commit to v0.0.290
  • Loading branch information
hibobmaster committed Sep 18, 2023
1 parent fe7cc75 commit 3d3d372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289
rev: v0.0.290
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion src/imagegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def get_images(
url,
headers={
"Content-Type": "application/json",
"Authorization": "Bearer " + kwargs.get("api_key"),
"Authorization": f"Bearer {kwargs.get('api_key')}",
},
json={
"prompt": prompt,
Expand Down

0 comments on commit 3d3d372

Please sign in to comment.