2
0

🚑 (stream) Fix stream for Vercel hosting

This commit is contained in:
Baptiste Arnaud
2024-03-23 18:14:37 +01:00
parent 8e52ee800b
commit 669f55062b
4 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.2.55",
"version": "0.2.56",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",

View File

@ -25,9 +25,9 @@ export const streamChat =
const apiHost = context.apiHost
const res = await fetch(
`${isNotEmpty(apiHost) ? apiHost : guessApiHost()}/api/v1/sessions/${
context.sessionId
}/streamMessage`,
`${
isNotEmpty(apiHost) ? apiHost : guessApiHost()
}/api/integrations/openai/streamer`,
{
method: 'POST',
headers: {
@ -35,6 +35,7 @@ export const streamChat =
},
body: JSON.stringify({
messages,
sessionId: context.sessionId,
}),
signal: abortController.signal,
}

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.55",
"version": "0.2.56",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.2.55",
"version": "0.2.56",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",