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 446 forks source link

单个附件大小不能超过25MB #210

Closed gmksbk closed 1 week ago

gmksbk commented 1 week ago

上传附件的时候如果大于25MB就会有提示:文件过大 单个文件大小不能超过25MB。只能分割上传。 直接访问blob,上传文件正常没有大小限制。请问这是什么原因?是否需要在chatnio追加环境变量?

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


Title: The size of a single attachment cannot exceed 25MB

When uploading an attachment, if it is larger than 25MB, a prompt will appear: The file is too large. The size of a single file cannot exceed 25MB. Can only be uploaded in splits. Directly access the blob, and there is no size limit for uploading files normally. Is this what is the reason? Do I need to append environment variables to chatnio?

Sh1n3zZ commented 1 week ago

Hi,

是 chatnio 的限制,见:

https://github.com/Deeptrain-Community/chatnio/blob/0ddd2d2a894ae4d60e2eb1d64075c75eaaae3d28/app/src/components/FileProvider.tsx#L35

Regards, Junhai Deng

gmksbk commented 1 week ago

Hi,

是 chatnio 的限制,见:

https://github.com/Deeptrain-Community/chatnio/blob/0ddd2d2a894ae4d60e2eb1d64075c75eaaae3d28/app/src/components/FileProvider.tsx#L35

Regards, Junhai Deng

感谢,这个能通过环境变量修改吗

Sh1n3zZ commented 1 week ago

Hi,

目前暂时不支持通过使用“环境变量”的方式进行修改,未来近期可能也不会对这部分内容做出修改,评估后可能会在后台添加此功能。 建议您现在可以通过 fork 本仓库后修改此行代码并按照 README 中的步骤进行手动编译部署的形式以实现您在此 issue 中所提到的“更改上传文件大小最大值”同时便于后续与本仓库进行 sync update

Best Regards, Junhai Deng

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


Hi,

Modification through the use of "environment variables" is currently not supported, and this part of the content may not be modified in the near future. This feature may be added in the background after evaluation. It is recommended that you now modify this line of code by forking this repository and following the steps in the README to manually compile and deploy it to achieve the "change the maximum upload file size" you mentioned in this issue and to facilitate subsequent cooperation with this repository. Perform sync update

Best Regards, Junhai Deng

gmksbk commented 1 week ago

Hi,

目前暂时不支持通过使用“环境变量”的方式进行修改,未来近期可能也不会对这部分内容做出修改,评估后可能会在后台添加此功能。 建议您现在可以通过 fork 本仓库后修改此行代码并按照 README 中的步骤进行手动编译部署的形式以实现您在此 issue 中所提到的“更改上传文件大小最大值”同时便于后续与本仓库进行 sync update

Best Regards, Junhai Deng

感谢

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


Hi,

Modification through the use of "environment variables" is currently not supported, and this part of the content may not be modified in the near future. This function may be added in the background after evaluation. It is recommended that you now modify this line of code by forking this repository and following the steps in the README to manually compile and deploy it to achieve the "change the maximum upload file size" you mentioned in this issue and to facilitate subsequent cooperation with this repository. Perform sync update

Best Regards, Junhai Deng

grateful