Skip to content

Commit

Permalink
chore: update to version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalbanese committed Dec 20, 2024
1 parent be150f2 commit b640759
Show file tree
Hide file tree
Showing 3 changed files with 2,317 additions and 2,191 deletions.
2 changes: 1 addition & 1 deletion app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function POST(req: Request) {
const strippedText = $("body").text().trim();
const cleanText = strippedText.replace(/\s+/g, " ");

const result = await streamObject({
const result = streamObject({
model: openai("gpt-4-turbo"),
system: `\
- for the following webpage, generate a JSON schema based on the user prompt
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"lint": "next lint"
},
"dependencies": {
"@ai-sdk/openai": "^0.0.40",
"@ai-sdk/openai": "^1.0.10",
"@vercel/analytics": "^1.3.1",
"@vercel/kv": "^2.0.0",
"ai": "^3.3.32",
"ai": "^4.0.21",
"cheerio": "^1.0.0",
"date-fns": "^3.6.0",
"geist": "^1.3.1",
Expand All @@ -21,7 +21,7 @@
"react-dom": "^18",
"react-use": "^17.5.1",
"sonner": "^1.5.0",
"zod": "^3.23.8"
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
Loading

0 comments on commit b640759

Please sign in to comment.