minor fixes

This commit is contained in:
Dustin 2024-04-26 22:43:09 -04:00
parent c4590a649e
commit 2bf9f9dcce

View File

@ -31,7 +31,7 @@ class ollamarama:
#prompt parts
self.prompt = ("you are ", ". roleplay and speak in the first person and never break character.")
#open models.json
#open config.json
with open("config.json", "r") as f:
self.models = json.load(f)[0]
f.close()
@ -93,7 +93,7 @@ class ollamarama:
{"role": "system", "content": self.prompt[0] + self.personality + self.prompt[1]},
{"role": role, "content": message}]
# create GPT response
#generate Ollama model response
async def respond(self, channel, sender, message, sender2=None):
try:
#Generate response