fixed something

This commit is contained in:
jad2121 2024-02-24 16:39:48 -05:00
parent e8c8ea10dc
commit ea7460d190
2 changed files with 4 additions and 1 deletions

View File

@ -94,16 +94,20 @@ def main():
text = standalone.get_cli_input()
if args.stream and not args.context:
standalone.streamMessage(text)
sys.exit()
if args.stream and args.context:
with open(config_context, "r") as f:
context = f.read()
standalone.streamMessage(text, context=context)
sys.exit()
elif args.context:
with open(config_context, "r") as f:
context = f.read()
standalone.sendMessage(text, context=context)
sys.exit()
else:
standalone.sendMessage(text)
sys.exit()
if __name__ == "__main__":

View File

@ -63,7 +63,6 @@ class Standalone:
Raises:
FileNotFoundError: If the pattern file is not found.
"""
wisdomFilePath = os.path.join(
config_directory, f"patterns/{self.pattern}/system.md"
)