Skip to content

Commit

Permalink
Merge pull request #10 from yoni13/main
Browse files Browse the repository at this point in the history
Update agents.py, should fix #9
  • Loading branch information
emirsahin1 authored Jun 20, 2024
2 parents 24677db + 6391df2 commit 7f010d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm_axe/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def search(self, prompt, history:list=None):
'''

final_responder = Agent(llm=self.llm, agent_type=AgentType.GENERIC_RESPONDER)
response = final_responder.ask(user_prompt, history)
response = final_responder.ask(user_prompt, history=history)

self.chat_history.append(make_prompt("user", user_prompt))
self.chat_history.append(make_prompt("assistant", response))
Expand All @@ -592,4 +592,4 @@ def get_search_query(self, question):
return response_json["search_query"]
else:
return None


0 comments on commit 7f010d0

Please sign in to comment.