Skip to content

Commit

Permalink
Merge pull request #1 from vercel-labs/na/update-deps
Browse files Browse the repository at this point in the history
chore: update to version 4
  • Loading branch information
nicoalbanese authored Jan 22, 2025
2 parents be150f2 + 4a1556e commit 55b59b2
Show file tree
Hide file tree
Showing 4 changed files with 2,330 additions and 2,191 deletions.
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2024 Vercel, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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 55b59b2

Please sign in to comment.