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
Signed by: bobmaster
SSH key fingerprint: SHA256:5ZYgd8fg+PcNZNy4SzcSKu5JtqZyBF8kUhY7/k2viDk
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ repos:
hooks: hooks:
- id: black - id: black
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289 rev: v0.0.290
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]

View file

@ -15,7 +15,7 @@ async def get_images(
url, url,
headers={ headers={
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": "Bearer " + kwargs.get("api_key"), "Authorization": f"Bearer {kwargs.get('api_key')}",
}, },
json={ json={
"prompt": prompt, "prompt": prompt,