workflow LLM node, after modifying the model, the prompt word is automatically changed #5440

Closed
opened 2026-02-21 18:10:59 -05:00 by yindo · 2 comments
Owner

Originally created by @skywolf123 on GitHub (Sep 7, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

0.7.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have a workflow that I have already done, and when I edit its LLM node and change its model, the prompt automatically changes, and it seems that there is a default value that I have never configured.
Also, I was able to revert to the original model and prompt words via CTRL+Z.

image
image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @skywolf123 on GitHub (Sep 7, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.7.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have a workflow that I have already done, and when I edit its LLM node and change its model, the prompt automatically changes, and it seems that there is a default value that I have never configured. Also, I was able to revert to the original model and prompt words via CTRL+Z. ![image](https://github.com/user-attachments/assets/8118a0bf-3d12-445d-a50b-94599f90613c) ![image](https://github.com/user-attachments/assets/6e26531b-bc91-4128-b70e-b535fc8a8610) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:10:59 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 7, 2024):

The prompt word automatically changes when modifying the model in the LLM node of the workflow in Dify version 0.7.3 because "Selecting a chat model or completion model will display different prompt composition structures" [1][2].

This behavior is by design to accommodate the different requirements and structures of various models. If you need to maintain specific prompt configurations, you may need to manually adjust them after changing the model.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 7, 2024): <!-- Answer --> The prompt word automatically changes when modifying the model in the LLM node of the workflow in Dify version 0.7.3 because "Selecting a chat model or completion model will display different prompt composition structures" <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/llm.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/guides/workflow/node/llm.md)</sup>. This behavior is by design to accommodate the different requirements and structures of various models. If you need to maintain specific prompt configurations, you may need to manually adjust them after changing the model. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@skywolf123 commented on GitHub (Sep 7, 2024):

I see.
It's better to make a hint here, otherwise the prompt words can be easily lost, especially if you edit it multiple times.

@skywolf123 commented on GitHub (Sep 7, 2024): I see. It's better to make a hint here, otherwise the prompt words can be easily lost, especially if you edit it multiple times.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5440