mirror of https://github.com/langgenius/dify.git
Update api/core/model_runtime/entities/message_entities.py
merged Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
16eb9a6dc2
commit
4db3037adf
|
|
@ -249,10 +249,8 @@ class AssistantPromptMessage(PromptMessage):
|
|||
|
||||
:return: True if prompt message is empty, False otherwise
|
||||
"""
|
||||
if not super().is_empty() or self.tool_calls:
|
||||
return False
|
||||
return super().is_empty() and not self.tool_calls
|
||||
|
||||
return True
|
||||
|
||||
|
||||
class SystemPromptMessage(PromptMessage):
|
||||
|
|
|
|||
Loading…
Reference in New Issue