fixed more stuff

This commit is contained in:
jad2121 2024-02-24 16:49:45 -05:00
parent ea7460d190
commit 7c1b819ffc

View File

@ -63,6 +63,7 @@ class Standalone:
Raises:
FileNotFoundError: If the pattern file is not found.
"""
wisdomFilePath = os.path.join(
config_directory, f"patterns/{self.pattern}/system.md"
)
@ -83,8 +84,8 @@ class Standalone:
return
else:
if context:
user_message += {role: "system", content: context}
messages = [user_message]
messages = [
{"role": "system", "content": context}, user_message]
else:
messages = [user_message]
try:
@ -149,8 +150,8 @@ class Standalone:
return
else:
if context:
user_message += {'role': 'system', 'content': context}
messages = [user_message]
messages = [
{'role': 'system', 'content': context}, user_message]
else:
messages = [user_message]
try: