pub struct ExpandConfig {Show 13 fields
pub model_family: String,
pub task: ExpandTask,
pub operation: PromptTransformOperation,
pub remix_dimensions: Vec<RemixDimension>,
pub variations: usize,
pub temperature: f64,
pub top_p: f64,
pub max_tokens: u32,
pub thinking: bool,
pub system_prompt: Option<String>,
pub batch_prompt: Option<String>,
pub family_overrides: HashMap<String, FamilyOverride>,
pub style: Option<String>,
}Expand description
Configuration for a prompt expansion request.
Fields§
§model_family: StringDiffusion model family (e.g. “flux”, “sd15”, “sdxl”).
task: ExpandTaskResolved generation task and conditioning policy.
operation: PromptTransformOperationInternal transform mode. Ordinary expansion remains the default.
remix_dimensions: Vec<RemixDimension>Resolved, task-safe dimensions used only for Remix.
variations: usizeNumber of prompt variations to generate (1 = single expansion).
temperature: f64Sampling temperature (0.0-2.0). Higher = more creative.
top_p: f64Nucleus sampling threshold.
max_tokens: u32Maximum tokens for the LLM response.
thinking: boolEnable Qwen3 thinking mode for higher quality (slower).
system_prompt: Option<String>Custom single-expansion system prompt template (overrides built-in).
Placeholders: {WORD_LIMIT}, {MODEL_NOTES}
batch_prompt: Option<String>Custom batch-variation system prompt template (overrides built-in).
Placeholders: {N}, {WORD_LIMIT}, {MODEL_NOTES}
family_overrides: HashMap<String, FamilyOverride>Per-family overrides for word limits and style notes.
style: Option<String>Optional visual style to weave into the expansion (per-request, set by
the route handler from ExpandRequest::style — never from settings).
Trait Implementations§
Source§impl Clone for ExpandConfig
impl Clone for ExpandConfig
Source§fn clone(&self) -> ExpandConfig
fn clone(&self) -> ExpandConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more