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:
呆萌闷油瓶 2025-12-24 15:20:10 +08:00 committed by GitHub
parent 16eb9a6dc2
commit 4db3037adf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -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):