Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Dec 11, 2024
1 parent 783e396 commit eddaf37
Show file tree
Hide file tree
Showing 6 changed files with 1,769 additions and 1,887 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-kings-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"workers-ai-provider": patch
---

update dependencies
18 changes: 11 additions & 7 deletions examples/ai-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
"deploy": "wrangler deploy"
},
"dependencies": {
"ai": "^3.2.41",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"ai": "^4.0.14",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240725.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"wrangler": "3.67.1"
"@cloudflare/workers-types": "^4.20241205.0",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"wrangler": "3.95.0"
},
"overrides": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/ai-chat/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default {
const { messages } = await request.json<{
messages: Parameters<typeof convertToCoreMessages>[0];
}>();
const result = await streamText({
model: workersai("@cf/meta/llama-3-8b-instruct"),
const result = streamText({
model: workersai("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
messages: convertToCoreMessages(messages),
});
return result.toDataStreamResponse({
Expand Down
2 changes: 1 addition & 1 deletion examples/ai-chat/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "workers-ai-chat"
main = "src/server/index.ts"
compatibility_date = "2024-07-31"

legacy_assets = 'public'
assets = { directory = 'public' }

[ai]
binding = "AI"
Expand Down
Loading

0 comments on commit eddaf37

Please sign in to comment.