Hello,
I’ve built numerous API calls to return chat completions. I receive the text without issue but want to format that text better. For instance, bold the text bookended by ### or **. Is there a plugin for this or do I need to use an HTML element for the output and write this out myself?
I’d probably have to see a sample response to better understand your needs, but is there any reason you couldn’t simply do pattern recognition and token replacement in conjunction with Bubble’s built-in BBCode capabilities?
For example, you could convert some **bold** text to some [b]bold[/b] text on the fly in your Bubble expression. It might require a bit of regex, but you wouldn’t need a plugin.
This thread describes something similar (although the working example is no longer accessible).
1 Like