mirror of https://github.com/langgenius/dify.git
This commit is contained in:
parent
fd845c8b6c
commit
977690590e
|
|
@ -747,7 +747,7 @@ class ParameterExtractorNode(Node):
|
|||
if model_mode == ModelMode.CHAT:
|
||||
system_prompt_messages = ChatModelMessage(
|
||||
role=PromptMessageRole.SYSTEM,
|
||||
text=CHAT_GENERATE_JSON_PROMPT.format(histories=memory_str).replace("{{instructions}}", instruction),
|
||||
text=CHAT_GENERATE_JSON_PROMPT.format(histories=memory_str, instructions=instruction),
|
||||
)
|
||||
user_prompt_message = ChatModelMessage(role=PromptMessageRole.USER, text=input_text)
|
||||
return [system_prompt_messages, user_prompt_message]
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ Here are the chat histories between human and assistant, inside <histories></his
|
|||
### Instructions:
|
||||
Some extra information are provided below, you should always follow the instructions as possible as you can.
|
||||
<instructions>
|
||||
{{instructions}}
|
||||
{instructions}
|
||||
</instructions>
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue