Skip to content

Commit

Permalink
Merge pull request #266 from Haidra-Org/main
Browse files Browse the repository at this point in the history
feat: `information` metadata key
  • Loading branch information
tazlin authored Sep 28, 2024
2 parents 92688f0 + 78aba62 commit 441430f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 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.6.5
rev: v0.6.8
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
3 changes: 2 additions & 1 deletion codegen/ai_horde/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4214,7 +4214,8 @@
"source_image",
"source_mask",
"extra_source_images",
"batch_index"
"batch_index",
"information"
]
},
"value": {
Expand Down
3 changes: 2 additions & 1 deletion codegen/ai_horde/swagger_openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -5208,7 +5208,8 @@
"source_image",
"source_mask",
"extra_source_images",
"batch_index"
"batch_index",
"information"
],
"example": "lora",
"type": "string"
Expand Down
2 changes: 2 additions & 0 deletions horde_sdk/ai_horde_api/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ class METADATA_TYPE(StrEnum):
"""Extra source images for the request."""
batch_index = auto()
"""The index of the batch in a batch request."""
information = auto()
"""Extra information about the image."""


class METADATA_VALUE(StrEnum):
Expand Down
4 changes: 2 additions & 2 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pytest==8.3.3
mypy==1.11.2
black==24.8.0
ruff==0.6.5
tox~=4.18.1
ruff==0.6.8
tox~=4.20.0
pre-commit~=3.8.0
build>=0.10.0
coverage>=7.2.7
Expand Down

0 comments on commit 441430f

Please sign in to comment.