Skip to content

Commit

Permalink
📝 (openai) Add troobleshoot guide for empty message issue
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Aug 1, 2023
1 parent aa9f5bc commit 482462f
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 28 deletions.
4 changes: 4 additions & 0 deletions apps/docs/docs/editor/blocks/integrations/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ It means your OpenAI block is not configured properly. Please check the followin
- You have selected an OpenAI account
- You have at least 1 **user** message or a **Message sequence ✨**.
- If you have a **Message sequence ✨**, make sure your user messages variable contains at least 1 message.

### It returns an empty message

It most likely mean that you exceeded your OpenAI free quota. Add a payment method to your OpenAI account to continue using it.
2 changes: 1 addition & 1 deletion apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@trpc/server": "10.34.0",
"@typebot.io/prisma": "workspace:*",
"@typebot.io/nextjs": "workspace:*",
"ai": "^2.1.20",
"ai": "2.1.30",
"aws-sdk": "2.1415.0",
"bot-engine": "workspace:*",
"cors": "2.8.5",
Expand Down
25 changes: 24 additions & 1 deletion packages/lib/playwright/databaseSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,38 @@ export const setupDatabase = async () => {
}

export const teardownDatabase = async () => {
await prisma.webhook.deleteMany({
where: {
typebot: {
workspace: {
members: {
some: { userId: { in: [userId, otherUserId] } },
},
},
},
},
})
await prisma.workspace.deleteMany({
where: {
members: {
some: { userId: { in: [userId, otherUserId] } },
},
},
})
await prisma.workspace.deleteMany({
where: {
id: {
in: [
proWorkspaceId,
freeWorkspaceId,
starterWorkspaceId,
lifetimeWorkspaceId,
customWorkspaceId,
],
},
},
})
await prisma.user.deleteMany({
where: { id: { in: [userId, otherUserId] } },
})
return prisma.webhook.deleteMany()
}
139 changes: 113 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 482462f

Please sign in to comment.