Deeptrain-Community / chatnio

🚀 Next Generation AI One-Stop Internationalization Solution. 🚀 下一代 AI 一站式 B/C 端解决方案,支持 OpenAI,Midjourney,Claude,讯飞星火,Stable Diffusion,DALL·E,ChatGLM,通义千问,腾讯混元,360 智脑,百川 AI,火山方舟,新必应,Gemini,Moonshot 等模型,支持对话分享,自定义预设,云端同步,模型市场,支持弹性计费和订阅计划模式,支持图片解析,支持联网搜索,支持模型缓存,丰富美观的后台管理与仪表盘数据统计。
https://chatnio.com
Apache License 2.0
2.71k stars 447 forks source link

Do Not Render Markdown in User Input #140

Closed xshadow0x closed 1 month ago

xshadow0x commented 3 months ago
image image image

bug with "*" symbol

there also bug when i send my python code with comments markdown start working and its looking not too good

image image

maybe need to delete some markdown features from user's messages

zmh-program commented 3 months ago

Oh, I see. Now there is indeed a hard problem to solve, markdown is misrecognized in some regular cases. It affects the usage. I'm thinking about how to solve this kind of problem, maybe we can discuss and share our thoughts?

The way I came up with it is that the user role information is not rendered as markdown, but as full text. But it can also be unfriendly in some cases Or not processed, wrapping

[code]

Something like that, but it would interfere with usage in some regular cases.

If there really isn't a better good idea, I'll consider user role not rendering markdown later on.

I found this at ChatGPT-Next-Web as well, and it does seem to be a bit more tricky: image

zmh-program commented 3 months ago

commercial version is already supported, waiting for @Sh1n3zZ to decentralize the open source version.