From da3f4dc7e4a478b7ee37b897e361111b8d15bef1 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 27 Jul 2023 11:27:32 -0700 Subject: [PATCH] Fix test config to run OpenAI Chat Actor, Director tests OpenAI conversation processor schema had updated but conftest hadn't been updated to reflect the same. Update conftest setup of conversation processor to fix this --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 79c9ca89..9c3916b6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -15,6 +15,7 @@ from khoj.utils.helpers import resolve_absolute_path from khoj.utils.rawconfig import ( ContentConfig, ConversationProcessorConfig, + OpenAIProcessorConfig, ProcessorConfig, TextContentConfig, GithubContentConfig, @@ -162,7 +163,7 @@ def processor_config(tmp_path_factory): # Setup conversation processor, if OpenAI API key is set processor_config = ProcessorConfig() processor_config.conversation = ConversationProcessorConfig( - openai_api_key=openai_api_key, + openai=OpenAIProcessorConfig(api_key=openai_api_key), conversation_logfile=processor_dir.joinpath("conversation_logs.json"), )