Skip to content

Commit

Permalink
update websearch run
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed May 3, 2024
1 parent 9e8aa34 commit de8a778
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phi/assistant/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,9 @@ def _run(
llm_response_type = "markdown"
functions = {}
if self.llm:
for _func in self.llm.functions:
for _f_name, _func in self.llm.functions.items():
if isinstance(_func, Function):
functions[_func.name] = _func.to_dict()
functions[_f_name] = _func.to_dict()
event_data = {
"run_type": "assistant",
"user_message": message,
Expand Down Expand Up @@ -1070,9 +1070,9 @@ async def _arun(
llm_response_type = "markdown"
functions = {}
if self.llm:
for _func in self.llm.functions:
for _f_name, _func in self.llm.functions.items():
if isinstance(_func, Function):
functions[_func.name] = _func.to_dict()
functions[_f_name] = _func.to_dict()
event_data = {
"run_type": "assistant",
"user_message": message,
Expand Down

0 comments on commit de8a778

Please sign in to comment.