Only setup conversation processor if it has configuration set

This commit is contained in:
Debanjum Singh Solanky 2022-08-10 22:34:03 +03:00
parent 9628ca073c
commit 82a7059b6a

View file

@ -68,7 +68,8 @@ def configure_processor(processor_config: ProcessorConfig, verbose: int):
processor = ProcessorConfigModel() processor = ProcessorConfigModel()
# Initialize Conversation Processor # Initialize Conversation Processor
processor.conversation = configure_conversation_processor(processor_config.conversation, verbose) if processor_config.conversation:
processor.conversation = configure_conversation_processor(processor_config.conversation, verbose)
return processor return processor