Skip to content

Commit 855488a

Browse files
authored
Merge pull request #5 from neondatabase/update-prompt
feat: Update prompt
2 parents 9fcb795 + 63175c0 commit 855488a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function POST(req: NextRequest) {
4141
const systemMessage: Message = {
4242
role: 'system',
4343
content:
44-
'Only answer questions about PostgreSQL and the user provided database schema if any. Return only SQL code with no explanation',
44+
'Only answer questions about PostgreSQL and the user provided database schema if any. Return only SQL code with no explanation. prefix the response with -- unless it is SQL code before and after code',
4545
};
4646

4747
const userSchema: Message = { role: 'user', content: `database schema: ${schema}` };

0 commit comments

Comments
 (0)