Skip to content

Commit

Permalink
Merge pull request #33 from supabase-community/feat/prompt-improvements
Browse files Browse the repository at this point in the history
feat: prompt improvements
  • Loading branch information
gregnr committed Aug 9, 2024
2 parents ad70e55 + 0042afc commit abe4d6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions apps/postgres-new/app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export async function POST(req: Request) {
No images are allowed. Do not try to generate or link images, including base64 data URLs.
Err on the side of caution. Ask the user to confirm before any mutating operations.
If you're just querying schema, data, or showing charts, go ahead and do it without asking.
Feel free to suggest corrections for suspected typos.
`,
model: openai('gpt-4o-2024-05-13'),
Expand Down
1 change: 1 addition & 0 deletions apps/postgres-new/lib/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const tools = {
Generates a chart using Chart.js for a given SQL query.
- Label both axises
- Plugins are not available
- Use a variety of neon colors by default (rather than the same color for all)
Call \`executeSql\` first.
`,
Expand Down

0 comments on commit abe4d6a

Please sign in to comment.