Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.

### Added

- `IPromptEnhancement` dataclass for nested `settings.promptEnhancement` on image inference (`enabled`, `temperature`, `topP`).
- `IMeshCluster` dataclass for `settings.meshCluster`:
- `thresholdConeHalfAngleRad: Optional[float]`
- `refineIterations: Optional[int]`
Expand All @@ -17,6 +18,7 @@ All notable changes to this project will be documented in this file.
- `remeshBand: Optional[float]`
- `remeshProject: Optional[float]`
- `meshCluster: Optional[Union[IMeshCluster, Dict[str, Any]]]`
- `promptEnhancement: Optional[Union[IPromptEnhancement, Dict[str, Any], bool]]`

## [0.5.14]

Expand Down
10 changes: 10 additions & 0 deletions runware/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,13 @@ class IMoodboard(SerializableMixin):
strength: Optional[float] = None


@dataclass
class IPromptEnhancement(SerializableMixin):
enabled: Optional[bool] = None
temperature: Optional[float] = None
topP: Optional[float] = None


@dataclass
class ISettings(SerializableMixin):
activeSpeakerDetection: Optional[Union["IActiveSpeakerDetection", Dict[str, Any]]] = None
Expand Down Expand Up @@ -1028,6 +1035,7 @@ class ISettings(SerializableMixin):
positivePrompt: Optional[str] = None
presencePenalty: Optional[float] = None
promptExtend: Optional[bool] = None
promptEnhancement: Optional[Union[IPromptEnhancement, Dict[str, Any], bool]] = None
promptUpsampling: Optional[bool] = None
preserveAudio: Optional[bool] = None
Comment thread
Sirsho1997 marked this conversation as resolved.
quad: Optional[bool] = None
Expand Down Expand Up @@ -1141,6 +1149,8 @@ def __post_init__(self, toolChoice: Optional[Union["ITextInferenceToolChoice", D
]
if isinstance(self.activeSpeakerDetection, dict):
self.activeSpeakerDetection = IActiveSpeakerDetection(**self.activeSpeakerDetection)
if isinstance(self.promptEnhancement, dict):
self.promptEnhancement = IPromptEnhancement(**self.promptEnhancement)
Comment thread
Sirsho1997 marked this conversation as resolved.
Comment on lines +1152 to +1153
if isinstance(self.segments, dict):
self.segments = [ISegment(**self.segments)]
elif self.segments:
Expand Down