Update summon_personality.py

This commit is contained in:
Saifeddine ALOUI 2024-05-22 15:54:29 +02:00 committed by GitHub
parent b3291c5878
commit 0e52d59a06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,8 +18,7 @@ def summon_personality(member_id:int, prompt: str, previous_discussion_text:str,
members:List[AIPersonality] = processor.personality.app.mounted_personalities
processor.personality.app.personality = members[member_id]
members[member_id].callback=callback
members[member_id].new_message("")
processor.personality.app.handle_generate_msg(client.client_id, {"prompt":prompt})
processor.personality.app.handle_generate_msg(client.client_id, {"prompt":prompt}, False)
processor.personality.app.personality = processor.personality
return "Execution done"