XThomasBU commited on
Commit
33b800e
1 Parent(s): e8a9670
code/modules/chat_processor/chat_processor.py CHANGED
@@ -6,7 +6,8 @@ class ChatProcessor:
6
  self.chat_processor_type = config["chat_logging"]["platform"]
7
  self.logging = config["chat_logging"]["log_chat"]
8
  self.tags = tags
9
- self._init_processor()
 
10
 
11
  def _init_processor(self):
12
  if self.chat_processor_type == "literalai":
 
6
  self.chat_processor_type = config["chat_logging"]["platform"]
7
  self.logging = config["chat_logging"]["log_chat"]
8
  self.tags = tags
9
+ if self.logging:
10
+ self._init_processor()
11
 
12
  def _init_processor(self):
13
  if self.chat_processor_type == "literalai":