langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.76k stars 6.61k forks source link

Parameters and query cannot be changed for different sessions #8723

Closed dabaicai123 closed 3 days ago

dabaicai123 commented 4 days ago

Self Checks

Dify version

0.8.3

Cloud or Self Hosted

Cloud

Steps to reproduce

step1:new a chat bot flow,set one paramter step2:run step3:new two conversations and set different parameters

搜狗截图20240924185318 搜狗截图20240924185823

✔️ Expected Behavior

command match log

❌ Actual Behavior

No response

dosubot[bot] commented 4 days ago

Hello @dabaicai123! 👋 I'm here to help you with bugs, questions, and contributions. Let's work together to solve this issue.

The issue you're experiencing with parameters and queries not changing for different sessions in Dify version 0.8.3 when using the cloud-hosted chatbot is due to the handling of the conversation_id. Once a conversation_id is generated, future calls to the API must include this conversation_id to ensure the conversation continuity. When a previous conversation_id is passed, any new inputs will be ignored, and only the query is processed for the ongoing conversation [1].

If you need to modify logic or variables during a session, you can use session-specific variables to adjust the bot's behavior or responses [1].

For further details, you can refer to the documentation here.

To continue talking to Dosu, mention @dosu.

crazywoola commented 4 days ago

I am not quite sure what you are talking about. Can you explain it again?

dabaicai123 commented 4 days ago

I created a chat workflow, new click run set different parameters in the log view of the upload participation my actual upload inconsistent. The same is true with apis, where parameters cannot be changed from session to session

dabaicai123 commented 4 days ago

In my screenshot, I pass hello1, but view log is hello5. I'm not sure which part is wrong, whether the log will prevail or if my parameters is not valid

dabaicai123 commented 4 days ago

The dialog log is the record of the last round of viewing, because I only have one dialog, click on the dialog to pop up the dialog log box by default, I mistook it for the transmission of the current dialog, in fact, I need to view the log in the chat record again. thanks

crazywoola commented 4 days ago
image

Did you publish the application. If not, the conversation will use previous version to handle the calls.

If you modified something, you need to make sure: