From 4cc23ee55e169a20e8dc9211c3eb3e445d283e40 Mon Sep 17 00:00:00 2001 From: jmbwell Date: Thu, 31 Aug 2023 03:22:07 +0000 Subject: [PATCH] suppress some logging --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 5d3faf6..62f86df 100644 --- a/plugin.py +++ b/plugin.py @@ -91,8 +91,8 @@ class Chat(callbacks.Plugin): # Get the last few lines of the chat scrollback to include in the prompt history = irc.state.history[-self.registryValue("scrollback_lines"):] - for message in history: - self.log.info(f"{message.nick}: {json.dumps(message.args)}") + # for message in history: + # self.log.info(f"{message.nick}: {json.dumps(message.args)}") # Restrict the scrollback to PRIVMSGs in the current channel, filtering out the invocation prefix filtered_messages = [ @@ -112,7 +112,7 @@ class Chat(callbacks.Plugin): # Combine the system prompt, and the scrollback (which already includes the invocation) messages = [{"role": "system", "content": system_prompt}] + conversation_history - self.log.info(json.dumps(messages)) + # self.log.info(json.dumps(messages)) # Submit the request to the API # res = requests.post(f"http://localhost:8000/capture", headers = {