testing new prompt/commented out response length hints
This commit is contained in:
parent
e837ba3dc3
commit
045ca6998c
@ -30,7 +30,7 @@ class ollamarama:
|
|||||||
self.messages = {}
|
self.messages = {}
|
||||||
|
|
||||||
#prompt parts
|
#prompt parts
|
||||||
self.prompt = ("you are ", ". roleplay and speak in the first person and never break character.")
|
self.prompt = ("you are ", ". roleplay and speak in the first person and never break character. keep your responses brief and to the point.")
|
||||||
|
|
||||||
self.models = config[0]['models']
|
self.models = config[0]['models']
|
||||||
#set model
|
#set model
|
||||||
@ -250,7 +250,7 @@ class ollamarama:
|
|||||||
if message != ".ai reset":
|
if message != ".ai reset":
|
||||||
m = message.split(" ", 1)
|
m = message.split(" ", 1)
|
||||||
try:
|
try:
|
||||||
m = m[1] + " [your response must be one paragraph or less]"
|
m = m[1]# + " [your response must be one paragraph or less]"
|
||||||
await self.add_history("user", room_id, sender, m)
|
await self.add_history("user", room_id, sender, m)
|
||||||
await self.respond(room_id, sender, self.messages[room_id][sender])
|
await self.respond(room_id, sender, self.messages[room_id][sender])
|
||||||
except:
|
except:
|
||||||
@ -262,7 +262,7 @@ class ollamarama:
|
|||||||
if len(m) > 1:
|
if len(m) > 1:
|
||||||
disp_name = m[0]
|
disp_name = m[0]
|
||||||
name_id = ""
|
name_id = ""
|
||||||
m = m[1] + " [your response must be one paragraph or less]"
|
m = m[1]# + " [your response must be one paragraph or less]"
|
||||||
if room_id in self.messages:
|
if room_id in self.messages:
|
||||||
for user in self.messages[room_id]:
|
for user in self.messages[room_id]:
|
||||||
try:
|
try:
|
||||||
@ -278,7 +278,7 @@ class ollamarama:
|
|||||||
#change personality
|
#change personality
|
||||||
if message.startswith(".persona "):
|
if message.startswith(".persona "):
|
||||||
m = message.split(" ", 1)
|
m = message.split(" ", 1)
|
||||||
m = m[1] + " [your response must be one paragraph or less]"
|
m = m[1]# + " [your response must be one paragraph or less]"
|
||||||
|
|
||||||
await self.persona(room_id, sender, m)
|
await self.persona(room_id, sender, m)
|
||||||
await self.respond(room_id, sender, self.messages[room_id][sender])
|
await self.respond(room_id, sender, self.messages[room_id][sender])
|
||||||
|
Loading…
Reference in New Issue
Block a user