mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
fixed more stuff
This commit is contained in:
parent
ea7460d190
commit
7c1b819ffc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user