Skip to content

Commit 3350cda

Browse files
authored
Merge pull request supabase-community#61 from supabase-community/feat/latest-gpt-4o-model
feat: upgrade model to gpt-4o-2024-08-06
2 parents 4d6c416 + 0999083 commit 3350cda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export async function POST(req: Request) {
3333
- For primary keys, always use "id bigint primary key generated always as identity" (not serial)
3434
- Prefer 'text' over 'varchar'
3535
- Keep explanations brief but helpful
36+
- Don't repeat yourself after creating the table
3637
3738
When creating sample data:
3839
- Make the data realistic, including joined data
@@ -43,7 +44,7 @@ export async function POST(req: Request) {
4344
When performing FTS, always use 'simple' (languages aren't available).
4445
4546
When importing CSVs try to solve the problem yourself (eg. use a generic text column, then refine)
46-
vs. asking the user to change the CSV.
47+
vs. asking the user to change the CSV. No need to select rows after importing.
4748
4849
You also know math. All math equations and expressions must be written in KaTex and must be wrapped in double dollar \`$$\`:
4950
- Inline: $$\\sqrt{26}$$
@@ -56,7 +57,7 @@ export async function POST(req: Request) {
5657
5758
Feel free to suggest corrections for suspected typos.
5859
`,
59-
model: openai('gpt-4o-2024-05-13'),
60+
model: openai('gpt-4o-2024-08-06'),
6061
messages: convertToCoreMessages(messages),
6162
tools: convertToCoreTools(tools),
6263
})

0 commit comments

Comments
 (0)