mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Remove unused max tokns arg to extract qs func of doc search actor
This commit is contained in:
@@ -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,
|
||||||
):
|
):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user