dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
15 stars 7 forks source link

Extra breaks between line elements in chat window #14

Open SmittieC opened 1 year ago

SmittieC commented 1 year ago

When the LLM produces a list it ends up with a bunch of extra
tags.

You'll have to login as my username, but here's an example: https://chatbots.dimagi.com/a/dimagi/experiments/e/54/session/690/ And here's the relevant HTML output where it's inserting a
between each list element:

<ol>
   <br>
   <li>Marine Drive - best for a calm walk 💑</li>
   <br>
   <li>Bandstand - Amazing sea view 🌊</li>
   <br>
   <li>Worli Seaface - It's beautiful at night 🌃</li>
   <br>
   <li>Café Mondegar - for music lovers 🎶</li>
   <br>
   <li>Elephanta Island - adventurous one-day trip 🏝️</li>
   <br>
</ol>
bderenzi commented 9 months ago

Jon re-flagged this issue. I've added a link to another relevant example here:

https://dimagi.slack.com/archives/C04VBQJ1DL3/p1706796291880179