Skip to content

Commit

Permalink
feat: support for lora is_version
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Dec 26, 2023
1 parent 7d4ea49 commit ac672cc
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 ac672cc

Please sign in to comment.