ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
76.85k stars 59.29k forks source link

[Feature Request] Extract the rendered portion of the output content of the large model into a separate component #5844

Open wenzhaoabc opened 4 days ago

wenzhaoabc commented 4 days ago

🥰 Feature Description

For the ChatGPT Next Web project, the content rendering component supports Markdown, mathematical formulas, HTML preview, and Mermaid diagram preview. I want to extract this into a standalone component for easier reuse in other projects. Furthermore, I'm interested in transforming it into a custom Gradio component. What files should I focus on, and how should I approach this task?

🧐 Proposed Solution

Strip away internationalization settings, icons, styling, full-screen mode, and other peripheral features, keeping only the core functionality.

📝 Additional Information

No response