Skip to content

Commit

Permalink
Merge pull request #98 from Haidra-Org/isversion
Browse files Browse the repository at this point in the history
feat: support for lora is_version
  • Loading branch information
tazlin authored Dec 26, 2023
2 parents 7d4ea49 + ac672cc commit 1de348a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions horde_sdk/ai_horde_api/apimodels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class LorasPayloadEntry(BaseModel):
"""The strength of the LoRa against the clip model."""
inject_trigger: str | None = Field(default=None, min_length=1, max_length=30)
"""Any trigger required to activate the LoRa model."""
is_version: bool = Field(default=False)
"""If true, will treat the lora name as a version ID."""


class TIPayloadEntry(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"name": "GlowingRunesAIV6",
"model": 1.0,
"clip": 1.0,
"inject_trigger": "a"
"inject_trigger": "a",
"is_version": false
}
],
"tis": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"name": "GlowingRunesAIV6",
"model": 1.0,
"clip": 1.0,
"inject_trigger": "a"
"inject_trigger": "a",
"is_version": false
}
],
"tis": [
Expand Down

0 comments on commit 1de348a

Please sign in to comment.