dify icon indicating copy to clipboard operation
dify copied to clipboard

Add an environment variable for developers to choose whether to update the inputs value in the same conversation

Open huu3301 opened this issue 2 years ago • 2 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.

In a multi-round conversation, the current design of dify is that when the user passes the conversation_id parameter to the interface, the value of inputs can only be the value of inputs when the conversation is created. Can a switch be made or an environment variable be designed so that developers can choose whether to update the value of inputs in the same conversation? sometimes custom variables need to be updated in in actual use, such as some parameters of the environment, but currently if I want to update the inputs, I can only create a new conversation.

2. Additional context or comments

image

3. Can you help us with this feature?

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

huu3301 avatar Oct 30 '24 07:10 huu3301

We also have similar scenarios where this feature is needed. For example, during a multi-turn conversation, if a user wants to take leave, the API caller can upload an attachment and include it in the input; or if a user applies to go out, the API caller can put the latitude and longitude information in the input (Note: In both of these examples, the final step is to call a tool API, which requires attachments and location information as parameters).

wy96f avatar Nov 04 '24 01:11 wy96f

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

Issue Summary

  • You requested a feature to update input values within the same conversation on the Dify platform.
  • This feature would allow developers to modify custom variables without starting a new conversation.
  • @wy96f supported this request, highlighting its necessity for scenarios like updating inputs with attachments or location information during multi-turn conversations.

Next Steps

  • Could you confirm if this issue is still relevant to the latest version of the Dify repository? If so, please comment to keep the discussion open.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Dec 05 '24 16:12 dosubot[bot]