Skip to content

Commit dfc84eb

Browse files
committed
refactor(backend): update prompt messages to include <GENERATE></GENERATE> tags
1 parent 46e13e2 commit dfc84eb

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

backend/src/build-system/handlers/database/schemas/prompt.ts

-2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ Your reply must start with "<GENERATE>" and end with "</GENERATE>".`;
131131
): string => {
132132
return `You are a Database Expert specializing in ${databaseType}. Your task is to analyze and fix any issues in the following database schema:
133133
134-
<GENERATE>
135134
${schemaContent}
136-
</GENERATE>
137135
138136
As an expert database engineer, you should:
139137
1. Analyze the schema for any syntax errors, logical inconsistencies, or missing elements

backend/src/build-system/handlers/database/schemas/schemas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class DBSchemaHandler implements BuildHandler {
116116
{
117117
role: 'user',
118118
content:
119-
'help me fix my schema code if there is any failed validation',
119+
'help me fix my schema code if there is any failed validation, generate full validated version schemas for me, with <GENERATE></GENERATE> xml tag',
120120
},
121121
],
122122
},

backend/src/build-system/handlers/frontend-code-generate/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ export class FrontendCodeHandler implements BuildHandler<string> {
193193
content: `Dependencies:
194194
195195
${dependenciesText}\n
196-
Now you can provide the code.
197-
`,
196+
Now you can provide the code, don't forget the <GENERATE></GENERATE> xml tags.
197+
, `,
198198
},
199199
] as MessageInterface[];
200200

0 commit comments

Comments
 (0)