diff --git a/kairon/shared/llm/processor.py b/kairon/shared/llm/processor.py index b1333928f..5f0d9cae2 100644 --- a/kairon/shared/llm/processor.py +++ b/kairon/shared/llm/processor.py @@ -226,7 +226,7 @@ async def __get_answer(self, query, system_prompt: Text, context: Text, user, ** ] if previous_bot_responses: messages.extend(previous_bot_responses) - query = self.modify_user_message_for_perplexity(query, llm_type, hyperparameters) + query = self.modify_user_message_for_perplexity(query, llm_type, hyperparameters) messages.append({"role": "user", "content": f"{context} \n{instructions} \nQ: {query} \nA:"}) if instructions \ else messages.append({"role": "user", "content": f"{context} \nQ: {query} \nA:"}) completion, raw_response = await self.__get_completion(messages=messages,