mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
synced
This commit is contained in:
parent
73c3491da7
commit
84c0283fb8
@ -1 +1 @@
|
||||
Subproject commit f4a9bbec3242435e0798d1100751ca74848f7fd9
|
||||
Subproject commit d1f6f079423a433768cb6978b7988e60619896bf
|
@ -658,7 +658,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
title[0] += chunk
|
||||
antiprompt = self.personality.detect_antiprompt(title[0])
|
||||
if antiprompt:
|
||||
ASCIIColors.warning(f"\nDetected hallucination with antiprompt: {antiprompt}")
|
||||
ASCIIColors.warning(f"\n{antiprompt} detected. Stopping generation")
|
||||
title[0] = self.remove_text_from_string(title[0],antiprompt)
|
||||
return False
|
||||
else:
|
||||
@ -939,7 +939,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
client.generated_text += chunk
|
||||
antiprompt = self.personality.detect_antiprompt(client.generated_text)
|
||||
if antiprompt:
|
||||
ASCIIColors.warning(f"\nDetected hallucination with antiprompt: {antiprompt}")
|
||||
ASCIIColors.warning(f"\n{antiprompt} detected. Stopping generation")
|
||||
client.generated_text = self.remove_text_from_string(client.generated_text,antiprompt)
|
||||
self.update_message(client_id, client.generated_text, parameters, metadata, None, MSG_TYPE.MSG_TYPE_FULL)
|
||||
return False
|
||||
@ -963,7 +963,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
client.generated_text = chunk
|
||||
antiprompt = self.personality.detect_antiprompt(client.generated_text)
|
||||
if antiprompt:
|
||||
ASCIIColors.warning(f"\nDetected hallucination with antiprompt: {antiprompt}")
|
||||
ASCIIColors.warning(f"\n{antiprompt} detected. Stopping generation")
|
||||
client.generated_text = self.remove_text_from_string(client.generated_text,antiprompt)
|
||||
self.update_message(client_id, client.generated_text, parameters, metadata, None, MSG_TYPE.MSG_TYPE_FULL)
|
||||
return False
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit e22eac0c1561206511ed513e0b079a7abb5baeef
|
||||
Subproject commit bfe958bdf6b836aab462c146d9012ece48294dcf
|
@ -1 +1 @@
|
||||
Subproject commit dfe62f9f9ef8b37a0828b4966ff0778a95f35517
|
||||
Subproject commit 0ab60ec2564b3e3ee47d8b60c42d9dd35ed350a0
|
Loading…
Reference in New Issue
Block a user