Skip to content

Commit

Permalink
fixed exit loop early
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed May 13, 2024
1 parent 13df90f commit 3bfab15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vision_agent/agent/vision_agent_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ def write_code(


def write_test(
user_req: str, subtask: str, tool_info: str, code: str, model: LLM
user_req: str,
subtask: str,
tool_info: str,
_: str,
code: str,
model: LLM
) -> str:
prompt = TEST.format(
context=USER_REQ_SUBTASK_CONTEXT.format(
Expand Down Expand Up @@ -233,7 +238,7 @@ def run_plan(
tool_info,
exec,
retrieved_ltm,
verbose,
verbose=verbose,
)
if task["type"] == "code":
current_code = code
Expand Down

0 comments on commit 3bfab15

Please sign in to comment.