聊天中支持完整的Markdown格式供机器人使用

It would be nice if the Chat window had full markdown support. Currently, it appears to intentionally not render markdown headers, as discussed here.

I agree that most people would not type markdown headers in a chat but LLMs might. As chatbots are becoming more common, it would be nice if any markdown sent by an LLM displayed correctly in the Chat window.

With RAG support bots in particular, the LLM receives raw post content from topics which may contain markdown headers. If it includes those headers in the chat reply, they don’t work as is.

3 个赞

My users are using AI mostly in chats (both DAI and Chatbot) and broken headers are a bit annoying. For me, ordinary users just don’t care :smirk:

But what bugs me the most is when I copy those chat messages to a topic those quoted headers stay broken.

5 个赞

We hear you and are thinking about this problem.

3 个赞

We now support headings in chat:

5 个赞

Including ones that are copied/quoted to topics?

1 个赞

Yes it will work

3 个赞

After more consideration, headings will now be limited to messages done by bots (id < 0):

Why? Is there a normal chat situation where people begin the line with # for another purpose? Just curious.

In our rapid tests it’s been abused by people. Also platforms like slack don’t support it. For now we see more cons than pros.

2 个赞

Ryan I would like to close this as completed, I am renaming to

“Full markdown support in Chat for bots”

Totally open to open another topic here for more general use, but the original request was mostly centered around bots.

2 个赞

We don’t need it for more general use. I was only asking out of curiosity.

I guess maths is going to be another tricky problem… cause that can be pretty common as well

But its a rabbit hole cause GPT4-o can refuse to make mathjax so we would also need a another decoder specially for this.