This commit is contained in:
Lincoln Stein 2022-12-13 01:12:53 -05:00 committed by GitHub
parent 4402ca10b2
commit cd3da2900d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,8 @@ class Concepts(object):
better to store the concept name (unique) than the concept trigger
(not necessarily unique!)
'''
if not prompt:
return prompt
triggers = self.match_trigger.findall(prompt)
if not triggers:
return prompt