浏览代码

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

Taranjeet Singh 2 年之前
父节点
当前提交
49711c92b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      embedchain/embedchain.py

+ 1 - 1
embedchain/embedchain.py

@@ -289,7 +289,7 @@ class EmbedChain:
         k = {}
         if self.online:
             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
         chat_history = memory.load_memory_variables({})["history"]