-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
[Bug] github的gpt4o识别图片报错 #4013
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
I found some similar issues and discussions that might be relevant to your problem:
Suggested Solutions:
If the issue persists, you may need to review the specific configurations for GitHub's GPT-4.0 model in your codebase to ensure they are correctly defined and implemented. |
应该不是跨域问题,如果是,那么下面的gemini-pro-1.5-exp就不应该能识别图片成功 |
It should not be a cross-domain problem. If it is, then the following gemini-pro-1.5-exp should not be able to successfully identify the image. |
Is this your github model? Can I see the tag of the model? |
GitHub的models审核多久通过的? |
How long does it take for GitHub's models to be approved? |
不知道。它说通过了有邮件提醒,但是我没收到。这天我听闻lobe更新了github模型,就去试了试,才发现能够使用。 |
have no idea. It said there would be an email reminder after it was approved, but I didn't receive it. That day I heard that lobe had updated the github model, so I tried it and found out that it could be used. |
好吧,那你是多久之前申请的? |
Okay, so how long ago did you apply? |
LobeChat is the default without any modification. |
How long did it take for your GitHub model to be approved? |
The application was approved the next day |
一个星期吧 |
A week |
Where is your lobe deployed? Is it the database version? Is s3 minio? |
现在我通过开启容器ipv6,解决了许多问题,详见 #4058
而开启客户端请求状态下,没有变化 而gpt4o-mini在开启客户端请求状态下,返回也是431错误,在关闭下,则是上面说到过的400错误 可以看出这个问题应该主要是431错误引起的,也就是请求头字段太大。希望官方排查一下,优化一下github api逻辑 @arvinxx |
Now I have solved many problems by enabling container ipv6. For details, see #4058
When the client request state is turned on, there is no change. When gpt4o-mini is turned on for client requests, it returns a 431 error. When it is turned off, it returns the 400 error mentioned above. It can be seen that this problem should be mainly caused by the 431 error, that is, the request header field is too large. I hope the official will investigate and optimize the github api logic @arvinxx |
The same issue occurred when using GitHub's gpt4-o. |
存在一样的问题,431,发生在4o |
The same problem exists, 431, occurred on 4o |
@arvinxx 大佬,应该是lobe这边的问题,我用github官方的测试代码测试了,minio里的图片能够正常识别 测试脚本如下:
脚本返回如下:
|
@arvinxx 大佬,上面的脚本是基于 推测:后者不支持访问ipv6。 基于
其返回如下:
其中图片链接改为支持ipv4的链接,脚本就能正常返回:
|
@hominsu You can refer to the case I mentioned above. |
@SAnBlog 可以参考一下我上面的案例。 |
@SAnBlog You can refer to my case above. |
@arvinxx 大佬,我发现使用 测试脚本如下:
脚本返回如下:
|
我昨天试了直接发请求是正常能跑通的,但是不知道为啥换到应用里发就会报错… 估计得 debug 下 |
Yesterday I tried sending a request directly and it worked normally, but I don’t know why I got an error when I changed it to the application... I guess I need to debug it. |
📦 部署环境
Docker
📌 软件版本
lobehub/lobe-chat-database:1.19.0
💻 系统环境
Other Linux
🌐 浏览器
Chrome
🐛 问题描述
github的模型
客户端请求开启或关闭,对话都可以正常进行的
客户端请求开启状态下,发送图片会报431错误(以下域名皆为占位符,实际是正确域名,在DNSPOD上正常解析)
客户端请求关闭状态下,发送图片会报400错误
而使用OpenRouter上的gemini-pro-1.5-exp发送图片是能正常识别的
”视觉模型不能正常使用视觉功能“的这个问题在智谱的glm-4v-plus及glm-4v上亦有,很难不怀疑是否有共通的bug #3909
📷 复现步骤
数据库版lobe,使用github的gpt4o,发送图片。
🚦 期望结果
视觉功能正常,包括后面提及的智谱的视觉模型。
📝 补充信息
这里使用的OpenRouter上的gemini-pro-1.5-exp,是通过one-api整合到openai接口的key上的
The text was updated successfully, but these errors were encountered: