Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 2 #1067

Closed
wants to merge 2 commits into from
Closed

Fixes 2 #1067

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "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)
6 changes: 3 additions & 3 deletions core/templates/registry.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from enum import Enum

from core.log import get_logger

from .node_express_mongoose import NodeExpressMongooseProjectTemplate
from .react_express import ReactExpressProjectTemplate
# from .react_express import ReactExpressProjectTemplate

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.9, ubuntu-latest)

Ruff (I001)

core/templates/registry.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.9, macos-latest)

Ruff (I001)

core/templates/registry.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.9, windows-latest)

Ruff (I001)

core\templates\registry.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

Ruff (I001)

core/templates/registry.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.12, macos-latest)

Ruff (I001)

core/templates/registry.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 6 in core/templates/registry.py

View workflow job for this annotation

GitHub Actions / build (3.12, windows-latest)

Ruff (I001)

core\templates\registry.py:1:1: I001 Import block is un-sorted or un-formatted

log = get_logger(__name__)

Expand All @@ -13,11 +13,11 @@

# 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,
}
Loading