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
40.96k stars 9.34k forks source link

[Request] 在会话页面添加`不进行markdown渲染`的开关 #1728

Open one-pyy opened 6 months ago

one-pyy commented 6 months ago

🥰 需求描述

在会话页面中, 有时会输入或输出xml格式, 如果进行markdown渲染则无法显示其中的字符

Claude官方 - 使用xml tag进行提示工程

🧐 解决方案

在会话页面添加不进行markdown渲染的开关

📝 补充信息

lobe-chat太强辣! 感谢开发者让孩子能用上api!

lobehubbot commented 6 months ago

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


🥰 Description of requirements

In the session page, sometimes the xml format is input or output, and the characters cannot be displayed if markdown is rendered.

Claude Official - Use xml tag for prompt project

🧐 Solution

Add the Do not render markdown switch to the session page

📝 Supplementary information

lobe-chat is too powerful! Thanks to the developer for allowing children to use the api!

lobehubbot commented 6 months ago

👀 @one-pyy

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

MapleEve commented 6 months ago

你可以先尝试在 Agent prompt 中加入输出规范

lobehubbot commented 6 months ago

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


You can first try adding output specifications to Agent prompt