🚸 (openai) Display OpenAI initial response error
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/js",
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.14",
|
||||
"description": "Javascript library to display typebots on your website",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
@ -105,6 +105,7 @@ export const ConversationContainer = (props: Props) => {
|
||||
})
|
||||
|
||||
const streamMessage = (content: string) => {
|
||||
console.log('STREAM', content)
|
||||
setIsSending(false)
|
||||
const lastChunk = [...chatChunks()].pop()
|
||||
if (!lastChunk) return
|
||||
|
@ -37,9 +37,7 @@ export const streamChat =
|
||||
|
||||
if (!res.ok) {
|
||||
return {
|
||||
error: {
|
||||
message: (await res.text()) || 'Failed to fetch the chat response.',
|
||||
},
|
||||
error: (await res.json()) || 'Failed to fetch the chat response.',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/nextjs",
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.14",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/react",
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.14",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user