Share feedback, ideas and get community help

Updated 11 months ago

Typebot adds unnecessary linebreaks to OpenAI assistant messages

Issue one: between paragraphs within one chat bubble seem to have too many line breaks
Issue two: these breaks seem to stack on bulleted and numbered lists

See attached screenshot for reference.

The problem seems not to be connected to the version of GPT. I tested it with gpt-4-turbo-preview and gpt-3.5-turbo. Both show the same issue.
Attachment
Screenshot_2024-02-03_at_14.30.13.png
1
V
E
C
34 comments
I'm not sure that your question is.
What do you expect from Typebot in this case?
Typebot seems to add linebreaks to the Message that's received from OpenAI. So my expectation is: Typebot should not add any additional linebreaks.
Typebot adds unnecessary linebreaks to OpenAI assistant messages
Recommend you to add a script block with a console.log({{response}}) (replacing response for your variable) code. Toggle on the "Execute on client?" option.
This way you'll have the raw OpenAI response to compare.
Also, try it with the default template (the intent is to isolate the problem).

My two best guests are:
1) Problem with the markdown interpreter.
2) Your custom template.
I notice this to when the output includes a space with a bulleted list it doubles the spaces
Are you using Mistel? Or open AI
NVM I see open AI
Mistral is the same way
If you look at the output you will see it adds a space for evert new line getting longer and longer of spacing between entries

1
2

3


4
@CptPlastic
I am using the OpenAI Assistant Integration
@Vilela™ Ok. I will do that and come back when I did. Thanks!
@Vilela™
I made a console log. The log looks clean. The output doesn't. It seems there are a couple of unnecessary span elements created. I made screenshots for everything: console output, rendered html, and html view:
Attachments
screenshot.png
console-log.png
spans.png
And the config of my openai module
Attachment
Screenshot_2024-02-04_at_13.50.10.png
Can you paste this content here.
Attachment
image.png
I'm asking cause I'm unsuccessfully trying to reproduce with mock data like:
Attachment
image.png
If the OpenAI output is clean, the problem is not there.
I guess it's the markdown interpreter.
Your Typebot is updated?
There's a markdown fix 3 days ago.
Attachment
image.png
I have Version 2.22.0. Seems to be up to date.
You mean I copy from console and paste here to discord?
Does not mean you have the latest commits.
That commit do not belong to this version.

Yeap!
So I can put the exaclty same value here and see how it looks.
It seems that this commit you mentioned is not part of the typebot Github release 2.22.0. So I guess I don't have it. I use Cloudron so I have to wait until the next release I guess.
Sure, here are three fun UX things:

  1. User Persona Mad Libs: This activity involves filling out a Mad Libs-style template to create fictional user personas. It's a playful way to understand different user characteristics and needs, and it can spark creativity in designing user-centered experiences.
  1. UX Escape Room: Imagine an escape room where participants have to navigate through different user experience challenges and puzzles. It's a fun and interactive way to test and improve your UX skills while working as a team.
  1. Design Critique Roulette: Gather a group of designers and take turns critiquing each other's designs in a fun and light-hearted way. It encourages constructive feedback, collaboration, and facilitates learning from different perspectives.
These activities aim to make UX more enjoyable while fostering creativity, collaboration, and learning. 😄🔍
I use cloudron also
It's probably this.
I just assumed it was all part of the same releases and cloudron just updated when a new release came out but. Sorry about that, makes since now that the commit is not part of the release we are on.
I see. I tried what you did. And I still have the additional linebreaks. So we just wait until the commit is part of the next release. Good to know that there is nothing wrong with my setup. 🙂
Thanks for checking!
Indeed, that's problematic. I'll release a new version now.
Deploying v2.22.1 now
Awesome. I saw it on Github! Thanks!! 🙂 I guess it‘s available on Cloudron shortly.
cloudron built a new version about 3hr after the new release so its there now.
Add a reply
Sign up and join the conversation on Discord