pub struct ExpandConfig {
pub model_family: String,
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>,
}Expand description
Configuration for a prompt expansion request.
Fields§
§model_family: StringDiffusion model family (e.g. “flux”, “sd15”, “sdxl”).
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.
Trait Implementations§
Source§impl Clone for ExpandConfig
impl Clone for ExpandConfig
Source§fn clone(&self) -> ExpandConfig
fn clone(&self) -> ExpandConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpandConfig
impl Debug for ExpandConfig
Auto Trait Implementations§
impl Freeze for ExpandConfig
impl RefUnwindSafe for ExpandConfig
impl Send for ExpandConfig
impl Sync for ExpandConfig
impl Unpin for ExpandConfig
impl UnsafeUnpin for ExpandConfig
impl UnwindSafe for ExpandConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more