mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix bug in /chat endpoint for general and update depdendencies
This commit is contained in:
@@ -54,7 +54,7 @@ dependencies = [
|
|||||||
"transformers >= 4.28.0",
|
"transformers >= 4.28.0",
|
||||||
"torch >= 2.0.1",
|
"torch >= 2.0.1",
|
||||||
"uvicorn == 0.17.6",
|
"uvicorn == 0.17.6",
|
||||||
"aiohttp == 3.8.4",
|
"aiohttp == 3.8.5",
|
||||||
"langchain >= 0.0.187",
|
"langchain >= 0.0.187",
|
||||||
"pypdf >= 3.9.0",
|
"pypdf >= 3.9.0",
|
||||||
"requests >= 2.26.0",
|
"requests >= 2.26.0",
|
||||||
|
|||||||
@@ -771,7 +771,7 @@ async def extract_references_and_questions(
|
|||||||
return compiled_references, inferred_queries
|
return compiled_references, inferred_queries
|
||||||
|
|
||||||
if conversation_type == ConversationCommand.General:
|
if conversation_type == ConversationCommand.General:
|
||||||
return compiled_references, inferred_queries
|
return compiled_references, inferred_queries, q
|
||||||
|
|
||||||
# Extract filter terms from user message
|
# Extract filter terms from user message
|
||||||
defiltered_query = q
|
defiltered_query = q
|
||||||
|
|||||||
Reference in New Issue
Block a user