Skip to content
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

Bugfix workflow saving with control_before_generate #1331

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

bezo97
Copy link
Collaborator

@bezo97 bezo97 commented Oct 27, 2024

Fixes #1203

The bug was that graphToPrompt() was called to get the serialized workflow. But that also invokes beforeQueued() which should not happen when saving the workflow.
My solution is to separate the graph serialization logic from graphToPrompt() which seems to be intended to be called only before enqueueing the prompt.

To test:

  • Set control mode to before in settings.
  • Change something in the workflow that has a random seed widget, note the seed number.
  • Save the workflow
  • Check that the seed does not change.

…workflow

- calling graphToPrompt() invokes beforeQueued() which should not happen when saving the workflow
@huchenlei huchenlei merged commit 7729611 into main Oct 27, 2024
9 checks passed
@huchenlei huchenlei deleted the bugfix/serialization-with-control-before-generate branch October 27, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: New random seed everytime you save workflow in control_before_generate mode
2 participants