From f915b2bd142e8ae4b5df3dcd15af442bb5692056 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 3 Apr 2024 15:53:35 +0530 Subject: [PATCH] Fix passing model_name param to chatml formatter for online chat --- src/khoj/processor/conversation/openai/gpt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/khoj/processor/conversation/openai/gpt.py b/src/khoj/processor/conversation/openai/gpt.py index 584037ed..7195c4b4 100644 --- a/src/khoj/processor/conversation/openai/gpt.py +++ b/src/khoj/processor/conversation/openai/gpt.py @@ -163,9 +163,9 @@ def converse( conversation_primer, system_prompt, conversation_log, - model, - max_prompt_size, - tokenizer_name, + model_name=model, + max_prompt_size=max_prompt_size, + tokenizer_name=tokenizer_name, ) truncated_messages = "\n".join({f"{message.content[:70]}..." for message in messages}) logger.debug(f"Conversation Context for GPT: {truncated_messages}")