mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 08:31:55 +00:00
proompt
This commit is contained in:
parent
b38e5cc7ed
commit
ec436bd63a
@ -116,7 +116,7 @@ class Chat(commands.Cog):
|
|||||||
return content
|
return content
|
||||||
|
|
||||||
def add_memory(self, role: str, message: str):
|
def add_memory(self, role: str, message: str):
|
||||||
prompt = "You're Artemis, a friendly AI hanging out in this Discord server, following is a user chat message directed at you.\n\n"
|
prompt = "You're Artemis, a bot hanging out in this Discord server, you're friendly and can answer anything, following is a user chat message directed at you.\n\n"
|
||||||
if len(self.memory) == 0:
|
if len(self.memory) == 0:
|
||||||
message = prompt + message
|
message = prompt + message
|
||||||
if len(self.memory) >= 15:
|
if len(self.memory) >= 15:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user