mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 05:40:17 +00:00
Skip using max_tokens as input to the extract questions step, as that's not used for max_output
This commit is contained in:
@@ -25,7 +25,6 @@ def extract_questions_anthropic(
|
|||||||
conversation_log={},
|
conversation_log={},
|
||||||
api_key=None,
|
api_key=None,
|
||||||
temperature=0,
|
temperature=0,
|
||||||
max_tokens=100,
|
|
||||||
location_data: LocationData = None,
|
location_data: LocationData = None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
@@ -71,7 +70,6 @@ def extract_questions_anthropic(
|
|||||||
model_name=model,
|
model_name=model,
|
||||||
temperature=temperature,
|
temperature=temperature,
|
||||||
api_key=api_key,
|
api_key=api_key,
|
||||||
max_tokens=max_tokens,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Extract, Clean Message from Claude's Response
|
# Extract, Clean Message from Claude's Response
|
||||||
|
|||||||
@@ -353,7 +353,6 @@ async def extract_references_and_questions(
|
|||||||
api_key=api_key,
|
api_key=api_key,
|
||||||
conversation_log=meta_log,
|
conversation_log=meta_log,
|
||||||
location_data=location_data,
|
location_data=location_data,
|
||||||
max_tokens=conversation_config.max_prompt_size,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Collate search results as context for GPT
|
# Collate search results as context for GPT
|
||||||
|
|||||||
Reference in New Issue
Block a user