[Q&A] 如何修改上传图片限制,以支持所有文件上传? #933
-
🧐 问题描述 | Proposed Solution我使用第三方的ChatGPT API,其支持通过gpt-4-vision(base64)的请求方式上传文件。 📝 补充信息 | Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 4 replies
-
gpt-4v 就不支持文件,就算咱改成支持文件了,模型不支持又有啥用呢? |
Beta Was this translation helpful? Give feedback.
-
gpt-4v does not support files. Even if it is changed to support files, what is the use? |
Beta Was this translation helpful? Give feedback.
-
我用的是第三方的API,是支持文件的,上传方法同图片,使用base64,所以想问一下从哪里能修改 |
Beta Was this translation helpful? Give feedback.
-
I am using a third-party API that supports files. The uploading method is the same as for images, using base64. |
Beta Was this translation helpful? Give feedback.
-
gpt-4-all?还没见过直接用base64上传文件的,都是传到一个存储的地方转成链接再让gpt读链接 |
Beta Was this translation helpful? Give feedback.
-
gpt-4-all? I have never seen anyone uploading a file directly using base64. They always transfer it to a storage location and convert it into a link and then let gpt read the link. |
Beta Was this translation helpful? Give feedback.
-
用的pandoratov1api项目做的,直接支持base64,gpt-4-all我感觉不太稳定 |
Beta Was this translation helpful? Give feedback.
-
Made using the pandoratov1api project, which directly supports base64. I feel that gpt-4-all is not very stable. |
Beta Was this translation helpful? Give feedback.
-
试试注释这一行: https://github.com/lobehub/lobe-chat/blob/main/src/features/ChatInput/ActionBar/FileUpload.tsx#L25 另外我们的展示上没有对非图片类的文件做兼容,所以可能预览会挂掉。你可以测试下看看行不行,最好结果也能反馈一下给我。 |
Beta Was this translation helpful? Give feedback.
-
Try commenting out this line: https://github.com/lobehub/lobe-chat/blob/main/src/features/ChatInput/ActionBar/FileUpload.tsx#L25 In addition, our display is not compatible with non-image files, so the preview may hang. You can test it and see if it works. It would be best if you can leave feedback here. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
你用的哪个API提供商? godgpt?他们老板说不打算对官方API做太多兼容,所以base64只支持大概1mb |
Beta Was this translation helpful? Give feedback.
-
Which API provider are you using? godgpt? Their boss said that they don’t plan to make too much compatibility with the official API, so base64 only supports about 1mb. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
PDF的显示似乎和浏览器有关,我用的arc,上传的pdf只能是一个灰色图片 |
Beta Was this translation helpful? Give feedback.
-
The display of PDF seems to be related to the browser. I use arc, and the uploaded PDF can only be a gray image. |
Beta Was this translation helpful? Give feedback.
试试注释这一行:
https://github.com/lobehub/lobe-chat/blob/main/src/features/ChatInput/ActionBar/FileUpload.tsx#L25
另外我们的展示上没有对非图片类的文件做兼容,所以可能预览会挂掉。你可以测试下看看行不行,最好结果也能反馈一下给我。