suppress some logging
This commit is contained in:
parent
1d2f48b0f4
commit
4cc23ee55e
@ -91,8 +91,8 @@ class Chat(callbacks.Plugin):
|
|||||||
|
|
||||||
# Get the last few lines of the chat scrollback to include in the prompt
|
# Get the last few lines of the chat scrollback to include in the prompt
|
||||||
history = irc.state.history[-self.registryValue("scrollback_lines"):]
|
history = irc.state.history[-self.registryValue("scrollback_lines"):]
|
||||||
for message in history:
|
# for message in history:
|
||||||
self.log.info(f"{message.nick}: {json.dumps(message.args)}")
|
# self.log.info(f"{message.nick}: {json.dumps(message.args)}")
|
||||||
|
|
||||||
# Restrict the scrollback to PRIVMSGs in the current channel, filtering out the invocation prefix
|
# Restrict the scrollback to PRIVMSGs in the current channel, filtering out the invocation prefix
|
||||||
filtered_messages = [
|
filtered_messages = [
|
||||||
@ -112,7 +112,7 @@ class Chat(callbacks.Plugin):
|
|||||||
|
|
||||||
# Combine the system prompt, and the scrollback (which already includes the invocation)
|
# Combine the system prompt, and the scrollback (which already includes the invocation)
|
||||||
messages = [{"role": "system", "content": system_prompt}] + conversation_history
|
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
|
# Submit the request to the API
|
||||||
# res = requests.post(f"http://localhost:8000/capture", headers = {
|
# res = requests.post(f"http://localhost:8000/capture", headers = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user