mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 03:46:52 +08:00
fix: question classifier instruction npe (#4931)
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user