enhanced zoo

This commit is contained in:
saloui 2023-06-20 16:25:30 +02:00
parent 6475ece3ab
commit b17cac4f97
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 02543f5b23ad31cd587dffd4b8b8f2623a7ea3a2
Subproject commit cc16d94f2ebaee7736891cf507ca5cc0026d58d6

View File

@ -14,6 +14,7 @@ import shutil
import subprocess
import yaml
from enum import Enum
from lollms.helpers import ASCIIColors
class MSG_TYPE(Enum):
MSG_TYPE_CHUNK=0
@ -168,7 +169,7 @@ class APScript:
antiprompt = self.personality.detect_antiprompt(bot_says)
if antiprompt:
self.bot_says = self.remove_text_from_string(bot_says,antiprompt)
print("Detected hallucination")
ASCIIColors.warning("Detected hallucination")
return False
else:
self.bot_says = bot_says