Skip to content

Commit

Permalink
📝 (openai) Add "Multiple OpenAI blocks" video section
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 12, 2023
1 parent 42fd603 commit e071c81
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions apps/docs/docs/editor/blocks/integrations/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@ Under the hood, **Messages sequence ✨** will convert the provided variables in

<YoutubeEmbed videoId="v167drfHFzk" />

## Using Multiple Open AI Blocks: Tips and Tricks

In this video, I discuss some important things to keep in mind when using multiple Open AI blocks consecutively. I provide an example where we ask the user for a topic, generate a summary, and display a list of authors.

I explain that streaming messages is not possible when they are prefixed or suffixed by text, and that all blocks need to compute before displaying anything.

I also demonstrate how formatting can be affected by the presence of text before a message. Watch this video to learn how to optimize your use of multiple Open AI blocks.

<div
style={{
position: 'relative',
paddingBottom: '64.63195691202873%',
height: 0,
}}
>
<iframe
src="https://www.loom.com/embed/35dc8af6b9244762acc4a5acf275fb43?sid=3723aa59-13ac-49f2-a95b-5608807ac76d"
frameborder="0"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
}}
></iframe>
</div>

## Troobleshooting

### Error message: "OpenAI block returned error"
Expand Down

0 comments on commit e071c81

Please sign in to comment.