Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] 请加上以下功能:用户自定义哪个模型可以上传文件 #1000

Closed
Payne-Wang opened this issue Jan 10, 2024 · 6 comments · Fixed by #1173
Closed

[Request] 请加上以下功能:用户自定义哪个模型可以上传文件 #1000

Payne-Wang opened this issue Jan 10, 2024 · 6 comments · Fixed by #1173
Labels

Comments

@Payne-Wang
Copy link

🥰 需求描述

目前lobe只有gpt-4-vision-preview支持文件上传,而且仅支持图片。但是目前很多将plus的功能转发,比如pandora,这些项目产生的api都可以支持上传文件分析。因此希望lobe可以支持用户自定义模型上传文件。

在之前的issue中有人提到过将该行注释可以实现文件上传(不仅限图片):https://github.com/lobehub/lobe-chat/blob/main/src/features/ChatInput/ActionBar/FileUpload.tsx#L25

实测之后确实可以

lobe中的对话:来自pandora的转发,如果传图片的话仍然可以展示图片,传非图片,比如此处的pdf文件,则显示空
LobeChat_随便聊聊_2024-01-10

下图是对应的GPT PLUS账号中创建的对话,可以看到这个上传过程与直接在网页端上传没有什么差别,只不过接口可能对文件大小有限制
image

感谢大佬!

🧐 解决方案

暂无

📝 补充信息

No response

@lobehubbot
Copy link
Member

👀 @Payne-Wang

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
Copy link
Member

@Payne-Wang

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 0.123.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kpchen
Copy link

kpchen commented Mar 21, 2024

why it was closed? even not resolved yet...

@arvinxx
Copy link
Contributor

arvinxx commented Mar 21, 2024

Because i have add an hidden model named gpt-4-all to support this

@jsjcjsjc
Copy link

Because i have add an hidden model named gpt-4-all to support this

could you please tell me how to use this hidden model named gpt-4-all ?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants