소스 검색

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"]