feat(logging): enhance logging with system message details

Added logging for system messages to improve debug traceability. This change helps in diagnosing issues by ensuring that system-level communications are captured alongside incoming user messages, thereby providing more context for developers monitoring application behavior.
This commit is contained in:
Kumi 2024-11-06 16:47:09 +01:00
parent 253c7e581f
commit 1b37beeb0c
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -179,6 +179,7 @@ class OpenAI(BaseAI):
chat_messages = [] chat_messages = []
self.logger.log(f"Incoming messages: {messages}", "debug") self.logger.log(f"Incoming messages: {messages}", "debug")
self.logger.log(f"System message: {system_message}", "debug")
messages.append(event) messages.append(event)