-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Feature: add prompt template node #8680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add prompt template node #8680
Conversation
Add a new node that applies Style Preset templates to prompts in workflows.
The node takes a style preset ID and positive/negative prompts as inputs,
then replaces {prompt} placeholders in the template with the provided prompts.
This makes Style Preset templates accessible in Workflow mode, enabling
users to apply consistent styling across their workflow-based generations.
Adds a new StylePresetField type that enables dropdown selection of style presets from the database in the workflow editor. Changes: - Add StylePresetField to backend (fields.py) - Update Prompt Template node to use StylePresetField instead of string ID - Add frontend field type definitions (zod schemas, type guards) - Create StylePresetFieldInputComponent with Combobox - Register field in InputFieldRenderer and nodesSlice - Add translations for preset selection
lstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised. No hiccups encountered.
|
@Pfannkuchensack , Schema.ts has merge conflicts and needs to be regenerated. I tried to commit the fix to this branch but git didn't like it. Can you do this on your end? I've enabled auto-merge. |
Head branch was pushed to by a user without write access
Summary
Adds a new
StylePresetFieldfield type that enables database-driven dropdown selection of style presets in the workflow editor.Changes:
StylePresetFieldclass infields.pyStylePresetFieldStylePresetFieldInputComponentwith Combobox that fetches presets viauseListStylePresetsQuery()InputFieldRendererand added Redux action innodesSliceRelated Issues / Discussions
#8664
QA Instructions
{prompt}placeholder)Merge Plan
Standard merge, no special handling required.
Checklist
What's Newcopy (if doing a release after this PR)