mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 03:15:59 +08:00
fix: question classifier instruction npe (#4931)
This commit is contained in:
parent
f7dd327bc2
commit
21ac2afb3a
@ -50,7 +50,7 @@ class QuestionClassifierNode(LLMNode):
|
|||||||
# fetch memory
|
# fetch memory
|
||||||
memory = self._fetch_memory(node_data.memory, variable_pool, model_instance)
|
memory = self._fetch_memory(node_data.memory, variable_pool, model_instance)
|
||||||
# fetch instruction
|
# fetch instruction
|
||||||
instruction = self._format_instruction(node_data.instruction, variable_pool)
|
instruction = self._format_instruction(node_data.instruction, variable_pool) if node_data.instruction else ''
|
||||||
node_data.instruction = instruction
|
node_data.instruction = instruction
|
||||||
# fetch prompt messages
|
# fetch prompt messages
|
||||||
prompt_messages, stop = self._fetch_prompt(
|
prompt_messages, stop = self._fetch_prompt(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user