changed to localhost and updated system prompt

This commit is contained in:
Hayden Johnson 2024-09-25 10:26:05 -07:00
parent 65682cf598
commit 63c38a371f

View file

@ -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: