bug: fix online bug in chat endpoint (#354)
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user