fix: prevent a case that cause image generation not work
chore: bump ruff-pre-commit to v0.0.290
This commit is contained in:
parent
fe7cc753c4
commit
3d3d37295f
2 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue