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.51k stars 9.99k forks source link

[Request] 和ChatGPT对话时,ChatGPT返回文件链接转换为可以下载的link。 #4021

Open weiwastron opened 1 month ago

weiwastron commented 1 month ago

🥰 需求描述

在lobe-chat中和chat-gpt对话,要求chat-gpt生成一个csv文件给我下载。ChatGPT返回“此外,你可以直接下载已生成的CSV文件:点击这里下载 CSV 文件 如何下载”。这里的链接是没有办法点击下载文件的。

🧐 解决方案

期望lobe-chat修改代码,识别到chat-gpt回复的内容中包含chat-gpt的sandbox中的文件的时候,可以进行下载和转换,然后提供一个可以下载的链接。

📝 补充信息

No response

lobehubbot commented 1 month ago

👀 @weiwastron

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 1 month ago

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


🥰 Description of requirements

Talk to chat-gpt in lobe-chat and ask chat-gpt to generate a csv file for me to download. ChatGPT returns "In addition, you can download the generated CSV file directly: [Click here to download CSV file](sandbox:/mnt/data/test_average score table.csv) How to download". There is no way to click on the link here to download the file.

🧐 Solution

It is expected that lobe-chat will modify the code, and when it recognizes that the content of chat-gpt's reply contains files in chat-gpt's sandbox, it can download and convert them, and then provide a download link.

📝 Supplementary information

No response