Skip to content

Commit

Permalink
Merge pull request #28 from alipay/dev_chongshi
Browse files Browse the repository at this point in the history
fix: prompt model bool function.
  • Loading branch information
AniviaTn authored May 14, 2024
2 parents 1569193 + 734cd9a commit ace2f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentuniverse/prompt/prompt_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def __bool__(self):
Return True if one of the introduction, target and instruction attribute is not empty.
Return False otherwise.
"""
return bool(self.introduction or self.introduction or self.introduction)
return bool(self.introduction or self.target or self.instruction)

0 comments on commit ace2f2d

Please sign in to comment.