Remove unused max tokns arg to extract qs func of doc search actor

This commit is contained in:
Debanjum Singh Solanky
2024-07-27 01:38:53 +05:30
parent f75606d7f5
commit 27ad9b1302
2 changed files with 0 additions and 2 deletions

View File

@@ -25,7 +25,6 @@ def extract_questions(
api_key=None, api_key=None,
api_base_url=None, api_base_url=None,
temperature=0.7, temperature=0.7,
max_tokens=100,
location_data: LocationData = None, location_data: LocationData = None,
user: KhojUser = None, user: KhojUser = None,
): ):

View File

@@ -359,7 +359,6 @@ async def extract_references_and_questions(
conversation_log=meta_log, conversation_log=meta_log,
location_data=location_data, location_data=location_data,
user=user, user=user,
max_tokens=conversation_config.max_prompt_size,
) )
elif conversation_config.model_type == ChatModelOptions.ModelType.ANTHROPIC: elif conversation_config.model_type == ChatModelOptions.ModelType.ANTHROPIC:
api_key = conversation_config.openai_config.api_key api_key = conversation_config.openai_config.api_key