Skip to content

Commit

Permalink
fix bug with attribute handling
Browse files Browse the repository at this point in the history
  • Loading branch information
luxzoli committed Oct 9, 2024
1 parent e82ab71 commit 99fb7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/oai/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def is_function_call(parts):
(len(rst) > 0)
and hasattr(rst[-1].parts[0], "_raw_part")
and hasattr(rst[-1].parts[0]._raw_part, "text")
and (rst[-1].parts[0].text == "")
and (rst[-1].parts[0]._raw_part.text == "")
):
append_text_to_last("empty")
append_parts(parts, role)
Expand Down

0 comments on commit 99fb7f7

Please sign in to comment.