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
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:
And the config of my openai module
Can you paste this content here.
I'm asking cause I'm unsuccessfully trying to reproduce with mock data like:
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.
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:
- 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.
- 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.
- 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 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. 🙂
Indeed, that's problematic. I'll release a new version 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.