gpt3 reprocessor update
This commit is contained in:
parent
770fea9286
commit
ad468c4324
@ -11,7 +11,6 @@ from random import randint as rint
|
||||
from random import choices
|
||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
from glob import glob
|
||||
import ipdb
|
||||
###########################################################################################
|
||||
OPENAPI_KEY = os.environ['OPENAPI_KEY']
|
||||
###########################################################################################
|
||||
@ -109,7 +108,6 @@ class Plugin:
|
||||
TRAP_OK=False
|
||||
################################################################################### REPROCESSOR SOF
|
||||
# SIMILARITY - QUERY ANSWER VS PERSONALITY PROFILE DATABASE
|
||||
#ipdb.set_trace()
|
||||
if MESSAGE_OK:
|
||||
if self.bot.openai_history.similar(openai_message.lower().strip(),' '.join(self.start_chat_log.strip().splitlines())[:len(openai_message.strip())])>0.4:
|
||||
self.openai_io.append({'user':USER,'message':MESSAGE,'target':target})
|
||||
|
Loading…
Reference in New Issue
Block a user