Skip to content

Commit

Permalink
Merge pull request #61 from supabase-community/feat/latest-gpt-4o-model
Browse files Browse the repository at this point in the history
feat: upgrade model to gpt-4o-2024-08-06
  • Loading branch information
gregnr authored Aug 14, 2024
2 parents 4d6c416 + 0999083 commit 3350cda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/postgres-new/app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export async function POST(req: Request) {
- For primary keys, always use "id bigint primary key generated always as identity" (not serial)
- Prefer 'text' over 'varchar'
- Keep explanations brief but helpful
- Don't repeat yourself after creating the table
When creating sample data:
- Make the data realistic, including joined data
Expand All @@ -43,7 +44,7 @@ export async function POST(req: Request) {
When performing FTS, always use 'simple' (languages aren't available).
When importing CSVs try to solve the problem yourself (eg. use a generic text column, then refine)
vs. asking the user to change the CSV.
vs. asking the user to change the CSV. No need to select rows after importing.
You also know math. All math equations and expressions must be written in KaTex and must be wrapped in double dollar \`$$\`:
- Inline: $$\\sqrt{26}$$
Expand All @@ -56,7 +57,7 @@ export async function POST(req: Request) {
Feel free to suggest corrections for suspected typos.
`,
model: openai('gpt-4o-2024-05-13'),
model: openai('gpt-4o-2024-08-06'),
messages: convertToCoreMessages(messages),
tools: convertToCoreTools(tools),
})
Expand Down

0 comments on commit 3350cda

Please sign in to comment.