Skip to content

Commit

Permalink
Merge pull request #13 from khoj-ai/features/whatsapp-cloud-api
Browse files Browse the repository at this point in the history
Remove conversation search step and just return the response from the…
  • Loading branch information
sabaimran authored Nov 24, 2023
2 parents 7aff753 + 5a57e0e commit b2a4696
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flint/routers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ async def chat_dev(
state.conversation_sessions[uuid] = await get_recent_conversations(user, uuid)
chat_history = state.conversation_sessions[uuid]

relevant_previous_conversations = await embeddings_manager.search(Body, user)
relevant_previous_conversations = await sync_to_async(list)(relevant_previous_conversations.all())
relevant_previous_conversations = []

try:
user_message, formatted_history_message, adjusted_memory_buffer = prepare_prompt(
Expand Down

0 comments on commit b2a4696

Please sign in to comment.