Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/novelai_python/sdk/ai/generate_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def set_mutual_exclusion(self, value: bool):
model: ModelTypeAlias = "nai-diffusion-3"
action: Union[str, Action] = Field(Action.GENERATE, description="Mode for img generate")
parameters: Union[Params]
use_new_shared_trial: bool = False
model_config = ConfigDict(extra="ignore")

@override
Expand Down Expand Up @@ -422,6 +423,7 @@ def build_generate(
decrisp_mode: bool = None,
variety_boost: bool = None,
furry_mode: bool = None,
use_trial: bool = False
):
"""
Quickly construct a parameter class that meets the requirements.
Expand Down Expand Up @@ -492,7 +494,8 @@ def build_generate(
input=prompt,
model=model,
action=Action.GENERATE,
parameters=params
parameters=params,
use_new_shared_trial=use_trial
)

@staticmethod
Expand Down