Skip to content

Commit 0042afc

Browse files
committed
feat: prompt improvements
1 parent ad70e55 commit 0042afc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

apps/postgres-new/app/api/chat/route.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ export async function POST(req: Request) {
5151
5252
No images are allowed. Do not try to generate or link images, including base64 data URLs.
5353
54-
Err on the side of caution. Ask the user to confirm before any mutating operations.
55-
56-
If you're just querying schema, data, or showing charts, go ahead and do it without asking.
57-
5854
Feel free to suggest corrections for suspected typos.
5955
`,
6056
model: openai('gpt-4o-2024-05-13'),

apps/postgres-new/lib/tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const tools = {
6868
Generates a chart using Chart.js for a given SQL query.
6969
- Label both axises
7070
- Plugins are not available
71+
- Use a variety of neon colors by default (rather than the same color for all)
7172
7273
Call \`executeSql\` first.
7374
`,

0 commit comments

Comments
 (0)