From 067336e003e6070b46d0b1f5b14b052b4e771165 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 20 Jan 2024 15:37:45 -0700 Subject: [PATCH] fix debug print --- README.md | 1 + run.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de22180..0aa372c 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ converse with and use for server management. - [ ] Figure out system permissions and how to run as a special user. - [ ] Give the agent instructions on how to run the system (pulled from the database). - [ ] Have the agent run every `n` minutes to check Icinga2 and take action if necessary. +- [ ] Evaluate using langchain. diff --git a/run.py b/run.py index b707ea6..edc3116 100755 --- a/run.py +++ b/run.py @@ -45,10 +45,9 @@ def main(): while True: temp_context = context if i > 0: + # Insert a prompt if this is not the first message. temp_context.append({'role': 'system', 'content': 'Run another command or call "talk" to communicate with the user.'}) - print(temp_context) - response = client.chat.completions.create( model="gpt-4", messages=temp_context,