mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 12:47:58 +00:00
enhanced zoo
This commit is contained in:
parent
6475ece3ab
commit
b17cac4f97
@ -1 +1 @@
|
|||||||
Subproject commit 02543f5b23ad31cd587dffd4b8b8f2623a7ea3a2
|
Subproject commit cc16d94f2ebaee7736891cf507ca5cc0026d58d6
|
@ -14,6 +14,7 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import yaml
|
import yaml
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
from lollms.helpers import ASCIIColors
|
||||||
|
|
||||||
class MSG_TYPE(Enum):
|
class MSG_TYPE(Enum):
|
||||||
MSG_TYPE_CHUNK=0
|
MSG_TYPE_CHUNK=0
|
||||||
@ -168,7 +169,7 @@ class APScript:
|
|||||||
antiprompt = self.personality.detect_antiprompt(bot_says)
|
antiprompt = self.personality.detect_antiprompt(bot_says)
|
||||||
if antiprompt:
|
if antiprompt:
|
||||||
self.bot_says = self.remove_text_from_string(bot_says,antiprompt)
|
self.bot_says = self.remove_text_from_string(bot_says,antiprompt)
|
||||||
print("Detected hallucination")
|
ASCIIColors.warning("Detected hallucination")
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
self.bot_says = bot_says
|
self.bot_says = bot_says
|
||||||
|
Loading…
Reference in New Issue
Block a user