From 63c38a371f6d19b8d121d9663be7b69dd1864e5b Mon Sep 17 00:00:00 2001 From: Hayden Johnson Date: Wed, 25 Sep 2024 10:26:05 -0700 Subject: [PATCH] changed to localhost and updated system prompt --- assistant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: