diff --git a/assistant.py b/assistant.py index da009a9..823a5f6 100755 --- a/assistant.py +++ b/assistant.py @@ -38,7 +38,7 @@ def copy_string_to_clipboard(string): return # Point to the local server -client = Client(host='hayden-desktop:11434') +client = Client(host='localhost:11434') code_history = [] @@ -103,7 +103,7 @@ def arg_shell(args): def handle_piped_input(args): all_input = sys.stdin.read() - query = 'Use the following context to answer the question. There will be no follow up questions from the user so make sure your answer is complete:\nSTART CONTEXT\n' + all_input + '\nEND CONTEXT\n' + query = 'Use the following context to answer the question. There will be no follow up questions from the user so make sure your answer is complete:\nSTART CONTEXT\n' + all_input + '\nEND CONTEXT\nAfter you answer the question, reflect on your answer and determine if it answers the question correctly.' if args.copy: query += 'Answer the question using a codeblock for any code or shell scripts\n' if args.follow_up: