Skip to content

Commit

Permalink
Merge pull request #93 from kuafuai/feat/support_xml
Browse files Browse the repository at this point in the history
feat(code): update write code
  • Loading branch information
booboosui authored Aug 31, 2023
2 parents 1ebf752 + 228f4f9 commit 0c5964c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/app/controllers/step_subtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def analysis():
appBasePrompt, _ = getServiceBasePrompt(req["app_id"], serviceName)
projectInfo, _ = getServiceIntro(req["app_id"], serviceName)
projectLib, _ = getServiceLib(req["app_id"], serviceName)
serviceStruct,_ = getServiceStruct(req["app_id"], serviceName)
serviceStruct, _ = getServiceStruct(req["app_id"], serviceName)

filesToEdit, success = splitTask(requirementID, newfeature, serviceName, appBasePrompt, projectInfo, projectLib, serviceStruct, req["app_id"])

Expand Down
6 changes: 3 additions & 3 deletions backend/app/pkgs/knowledge/app_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def getServiceBasePrompt(appID, serviceName):
apps = Application.get_all_application("", appID)
if len(apps) > 0:
services = apps[0]["service"]
serviceNameStr = ""
service_names = []
currentServiceStr = ""
for service in services:
serviceNameStr += service["name"]+","
service_names.append(service["name"])
if service["name"] == serviceName:
currentServiceStr = "and you are responsible for the development of "+service["name"]+" services. The service uses the "+service["language"]+" language and is developed under the "+service["framework"]+" framework"

serviceNameStr = serviceNameStr.strip()
serviceNameStr = ','.join(service_names)
appBasePrompt = "The application consists of "+serviceNameStr+" services, "+currentServiceStr

return appBasePrompt, True
Expand Down
2 changes: 1 addition & 1 deletion backend/app/pkgs/prompt/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def splitTask(requirementID, newfeature, serviceName, appBasePrompt, projectInfo
else:
if "java" in serviceName:
obj = SubtaskJavaPro()
if "vue" in serviceName:
elif "vue" in serviceName:
obj = SubtaskVuePro()
else:
obj = SubtaskPro()
Expand Down

0 comments on commit 0c5964c

Please sign in to comment.