Skip to content

Commit

Permalink
update event order
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed May 3, 2024
1 parent de8a778 commit c27d797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phi/assistant/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def _run(
elif self.markdown:
llm_response_type = "markdown"
functions = {}
if self.llm:
if self.llm is not None and self.llm.functions is not None:
for _f_name, _func in self.llm.functions.items():
if isinstance(_func, Function):
functions[_f_name] = _func.to_dict()
Expand Down Expand Up @@ -1069,7 +1069,7 @@ async def _arun(
elif self.markdown:
llm_response_type = "markdown"
functions = {}
if self.llm:
if self.llm is not None and self.llm.functions is not None:
for _f_name, _func in self.llm.functions.items():
if isinstance(_func, Function):
functions[_f_name] = _func.to_dict()
Expand Down

0 comments on commit c27d797

Please sign in to comment.