Browse Source

bug: fix online bug in chat endpoint (#354)

Taranjeet Singh 2 năm trước cách đây
mục cha
commit
49711c92b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      embedchain/embedchain.py

+ 1 - 1
embedchain/embedchain.py

@@ -289,7 +289,7 @@ class EmbedChain:
         k = {}
         k = {}
         if self.online:
         if self.online:
             k["web_search_result"] = self.access_search_and_get_results(input_query)
             k["web_search_result"] = self.access_search_and_get_results(input_query)
-        contexts = self.retrieve_from_database(input_query, config, **k)
+        contexts = self.retrieve_from_database(input_query, config)
 
 
         global memory
         global memory
         chat_history = memory.load_memory_variables({})["history"]
         chat_history = memory.load_memory_variables({})["history"]