From 7970dc87727156d7a1c60f701b8f7a5ca1f7f051 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Sun, 28 Jul 2024 19:16:40 -0700 Subject: [PATCH 1/2] look for DONE in the bigger chunk of the response --- core/agents/task_reviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/agents/task_reviewer.py b/core/agents/task_reviewer.py index 7c0aa9830..f6b3999a4 100644 --- a/core/agents/task_reviewer.py +++ b/core/agents/task_reviewer.py @@ -47,7 +47,7 @@ async def review_code_changes(self) -> AgentResponse: ) 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) From ee8d0e73c457586d20d948f185a5e9513bb9b14f Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Sun, 28 Jul 2024 19:17:21 -0700 Subject: [PATCH 2/2] Commented out Senko's last template until we get it fixed --- core/templates/registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/templates/registry.py b/core/templates/registry.py index f52f89b89..a951e92e4 100644 --- a/core/templates/registry.py +++ b/core/templates/registry.py @@ -3,7 +3,7 @@ from core.log import get_logger from .node_express_mongoose import NodeExpressMongooseProjectTemplate -from .react_express import ReactExpressProjectTemplate +# from .react_express import ReactExpressProjectTemplate log = get_logger(__name__) @@ -13,11 +13,11 @@ class ProjectTemplateEnum(str, Enum): # JAVASCRIPT_REACT = JavascriptReactProjectTemplate.name NODE_EXPRESS_MONGOOSE = NodeExpressMongooseProjectTemplate.name - REACT_EXPRESS = ReactExpressProjectTemplate.name + # REACT_EXPRESS = ReactExpressProjectTemplate.name PROJECT_TEMPLATES = { # JavascriptReactProjectTemplate.name: JavascriptReactProjectTemplate, NodeExpressMongooseProjectTemplate.name: NodeExpressMongooseProjectTemplate, - ReactExpressProjectTemplate.name: ReactExpressProjectTemplate, + # ReactExpressProjectTemplate.name: ReactExpressProjectTemplate, }