Skip to content

Commit

Permalink
fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 12, 2024
1 parent fa66467 commit 5b25dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision_agent/agent/vision_agent_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def chat_with_workflow(
if self.verbosity >= 1:
for p in plans:
# tabulate will fail if the keys are not the same for all elements
p = [
p_fixed = [
{
"instructions": (
e["instructions"] if "instructions" in e else ""
Expand All @@ -745,7 +745,7 @@ def chat_with_workflow(
for e in plans[p]
]
_LOGGER.info(
f"\n{tabulate(tabular_data=p, headers='keys', tablefmt='mixed_grid', maxcolwidths=_MAX_TABULATE_COL_WIDTH)}"
f"\n{tabulate(tabular_data=p_fixed, headers='keys', tablefmt='mixed_grid', maxcolwidths=_MAX_TABULATE_COL_WIDTH)}"
)

tool_infos = retrieve_tools(
Expand Down

0 comments on commit 5b25dbe

Please sign in to comment.