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

Can we add an optional feature to LLM nodes that only executes when a certain condition is met, otherwise it returns the default value #11726

Open
4 of 5 tasks
yg2024 opened this issue Dec 17, 2024 · 2 comments
Labels
💪 enhancement New feature or request

Comments

@yg2024
Copy link

yg2024 commented Dec 17, 2024

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Can we add an optional feature to LLM nodes that only executes when a certain condition is met, otherwise it returns the default value

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Dec 17, 2024
@crazywoola
Copy link
Member

crazywoola commented Dec 17, 2024

Can you share the use case and describe why you need this? I don't see the differences by add a if/else before the llm node, and it is more flexible. By add this duplicated feature into llm self seems unnecessary to me.

@yg2024
Copy link
Author

yg2024 commented Dec 17, 2024

image
In this situation, the node executing SQL needs to use the SQL generated earlier. Although this can be solved by adding session variables, session variables will cause the final reply stage to only reply in full at once, and there is no way to respond in a streaming manner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants