Skip to content

Commit

Permalink
accept task review as 'done' if it has 'done' at the end of response
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonOstrez committed Jul 12, 2024
1 parent 516b158 commit 4fd5ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/agents/task_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def review_code_changes(self) -> AgentResponse:
)
llm_response: str = await llm(convo, temperature=0.7)

if llm_response.strip().lower() == "done":
if "done" in llm_response.strip().lower()[-6:]:
return AgentResponse.done(self)
else:
return AgentResponse.task_review_feedback(self, llm_response)

0 comments on commit 4fd5ed5

Please sign in to comment.