suppress some logging

This commit is contained in:
John Burwell 2023-08-31 03:22:07 +00:00
parent 1d2f48b0f4
commit 4cc23ee55e

View File

@ -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 = {