(openai) Use Vercel's AI SDK for streaming

This commit is contained in:
Baptiste Arnaud
2023-06-20 17:23:14 +02:00
parent 7c2e5740dc
commit 63bebe9f83
7 changed files with 265 additions and 78 deletions

View File

@@ -19,6 +19,7 @@
"@typebot.io/js": "workspace:*",
"@typebot.io/prisma": "workspace:*",
"@typebot.io/react": "workspace:*",
"ai": "^2.1.3",
"aws-sdk": "2.1384.0",
"bot-engine": "workspace:*",
"cors": "2.8.5",
@@ -30,6 +31,7 @@
"nextjs-cors": "2.1.2",
"nodemailer": "6.9.2",
"openai": "3.2.1",
"openai-edge": "^1.1.0",
"qs": "6.11.2",
"react": "18.2.0",
"react-dom": "18.2.0",