fix: prevent a case that cause image generation not work

chore: bump ruff-pre-commit to v0.0.290
This commit is contained in:
hibobmaster 2023-09-18 14:19:48 +08:00
parent fe7cc753c4
commit 3d3d37295f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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,