mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
look for DONE in the bigger chunk of the response
This commit is contained in:
@@ -47,7 +47,7 @@ class TaskReviewer(BaseAgent):
|
||||
)
|
||||
llm_response: str = await llm(convo, temperature=0.7)
|
||||
|
||||
if "done" in llm_response.strip().lower()[-7:]:
|
||||
if "done" in llm_response.strip().lower()[-20:]:
|
||||
return AgentResponse.done(self)
|
||||
else:
|
||||
return AgentResponse.task_review_feedback(self, llm_response)
|
||||
|
||||
Reference in New Issue
Block a user