Skip to content

Commit

Permalink
bug: fix online bug in chat endpoint (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
taranjeet authored Jul 22, 2023
1 parent c4797eb commit 49711c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedchain/embedchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def chat(self, input_query, config: ChatConfig = None, dry_run=False):
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"]
Expand Down

0 comments on commit 49711c9

Please sign in to comment.