lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
34.77k stars 8.16k forks source link

[Request] mermaid support #1415

Open zealotCE opened 4 months ago

zealotCE commented 4 months ago

🥰 Feature Description

在需要 LLM 助手返回数据时,如果返回 markdown 的 mermaid 格式内容,期望能直接显示出来。 类似这样:

image

🧐 Proposed Solution

不论是输入还是助手的输出,如果返回的 markdown 内容中,只要是 mermaid 格式的内容则直接渲染

📝 Additional Information

No response

lobehubbot commented 4 months ago

👀 @zealotCE

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 4 months ago

@canisminor1990 是不是可以做个配置允许这样展示出来呢?

lobehubbot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@canisminor1990 Is it possible to configure it to allow it to be displayed like this?

Delay-n-days commented 1 month ago

i need it so