* Use of pathlib everywhere.
* Fix in a1111 script.
This commit is contained in:
@@ -44,6 +44,7 @@ class ONWARNING_CHOICES(Enum):
|
||||
warn = "warn"
|
||||
stop = "stop"
|
||||
|
||||
|
||||
# ------------------- Host configuration -------------------
|
||||
|
||||
AttentionOption = Literal["ok", "parentheses", "disable", "remove", "error"]
|
||||
@@ -172,8 +173,10 @@ class PPPConfig(BaseModel):
|
||||
raise ValueError("At least one of 'hosts' or 'models' must be specified")
|
||||
return self
|
||||
|
||||
|
||||
# ------------------- State object -------------------
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PPPStateOptions:
|
||||
"""Options that can be set for prompt processing."""
|
||||
@@ -221,6 +224,7 @@ class PPPStateOptions:
|
||||
object.__setattr__(self, "cup_merge_attention", False)
|
||||
object.__setattr__(self, "cup_remove_extranetwork_tags", False)
|
||||
|
||||
|
||||
class CyclicalSamplerState:
|
||||
"""Maintains the cycling position for '@' choice samplers across process_prompt calls."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user