dify icon indicating copy to clipboard operation
dify copied to clipboard

Support rewriting the variables value of the prompt within one conversation

Open aki-colt opened this issue 11 months ago • 1 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] 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.

I need to provide the AI with a substantial piece of information in each request within a conversation. This information is only relevant to the current request, and to prevent the conversation context from becoming excessively long, I have decided to place it within a variable in the prompt. Consequently, I require the capability to overwrite the variable value in the prompt across different requests within the same conversation. Maybe it is a good idea to provide a bool parameter in the request to control if this request will rewrite the variable value in the prompt.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [x] I am interested in contributing to this feature.

aki-colt avatar Jan 18 '25 07:01 aki-colt

Hi, @aki-colt. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Feature proposal to allow overwriting variable values in prompts.
  • Suggestion includes a boolean parameter for managing context length.
  • You expressed willingness to contribute to development.
  • No further comments or activity since the issue was opened.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of Dify by commenting here.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Feb 18 '25 16:02 dosubot[bot]