lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.38k stars 9.95k forks source link

[Request] 可以加一个启用渲染(比如html)的选项吗? #1938

Closed CoREse closed 1 month ago

CoREse commented 7 months ago

🥰 需求描述

如https://github.com/lobehub/lobe-chat/issues/217#issue-1906353014 所提到的,以前对于未被代码块包括的包括html标签是会被渲染的,这当然很影响程序稳定性,但后来一刀切都砍掉了,却使它少了一个功能。比如说如果我想让chatgpt输出html标签的结果(比如\<ruby>标签添加拼音),结果是不会被渲染的。如果能在句子菜单里加上一个启动渲染的选项就好了。感谢! 实现起来应该也不难,加个选项不让这一句进行https://github.com/lobehub/lobe-chat/issues/217#issue-1906353014 添加上的转义之类的处理就ok了。

🧐 解决方案

在每句的...菜单以及助手设置界面添加“启用渲染”的选项。

📝 补充信息

No response

lobehubbot commented 7 months ago

👀 @CoREse

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 7 months ago

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


🥰 Description of requirements

As mentioned in https://github.com/lobehub/lobe-chat/issues/217#issue-1906353014, in the past, html tags that were not included in the code block would be rendered, which of course affected the stability of the program. Sex, but then cutting it off across the board left it with one less function. For example, if I want chatgpt to output the results of html tags (such as \<ruby> tags with pinyin added), the results will not be rendered. It would be nice if there was an option to start rendering in the sentence menu. grateful! It shouldn't be difficult to implement. Just add an option to prevent this sentence from being processed by https://github.com/lobehub/lobe-chat/issues/217#issue-1906353014. Adding escaping and other processing will be ok.

🧐 Solution

Add the "Enable Rendering" option to the... menu of each sentence and the assistant settings interface.

📝 Supplementary information

No response

arvinxx commented 1 month ago

如果你需要 Artifacts 类似的功能,目前已经实现了,这个issue先关了。如果有另外的诉求可以再 reopen

lobehubbot commented 1 month ago

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


If you need similar functionality to Artifacts, it has been implemented so far, so this issue will be closed first. You can reopen if you have other demands.

lobehubbot commented 1 month ago

✅ @CoREse

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。