-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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] 对话中使用图片报错 #4454
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
📦 Deployment environmentDocker 📌 Software version1.22.17 💻 System environmentOther Linux 🌐 BrowserEdge 🐛 Problem descriptionWhen I use an image in a conversation I get the following error When I use the browser to access according to the URL in the error message, the image can be accessed normally. 📷 Steps to reproduceNo response 🚦 Expected resultsNo response 📝 Supplementary informationNo response |
@CaffeineCM 你好!我是 Dosu,一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者处理你的问题时提供帮助。 I found a similar issue related to handling image URLs in the To resolve a similar issue, it was suggested to add an environment variable |
我的部署参考该文档https://lobehub.com/zh/docs/self-hosting/server-database/docker-compose |
My deployment refers to this document https://lobehub.com/zh/docs/self-hosting/server-database/docker-compose |
试试 |
Try |
更新到最新版本 v1.22.26仍然存在该问题 |
Updated to the latest version v1.22.26 and the problem still exists |
|
Change |
No changes, I just replaced the IP |
I read the meaning in the document and understood it to be: If the user does not need to modify the avatar by himself, there is no need to worry about the subsequent steps. |
I configured it according to the tutorial, and replaced the new Access Key and Secret Key in .env. The bucket name was configured as lobe in both .env and casdoor, but I still have the same problem. |
Is there any problem using localhost directly? |
我在VPS上用IP试了下没问题 |
I tried using IP on VPS and it worked fine. |
我全部重新部署试一下,感谢您的解答 |
I'll redeploy everything and give it a try. Thank you for your answer. |
请问一下是否需要ip为公网ip呢,我是局域网部署的,刚刚重新部署了一下,发现仍然存在这个问题。哪怕我将桶设置为public都不行 |
I would like to ask if the IP needs to be a public IP. I deployed it on the LAN. I just redeployed it and found that this problem still exists. It doesn't work even if I set the bucket to public |
局域网就不太清楚了,没试过 |
I'm not sure about the LAN, I haven't tried it yet. |
您好,我刚试了一下,确实是局域网的问题,我将minio的端口开公网,docker-compose.yml中的lobe.environment中minio相关的ip改为域名,casdoor也改为域名,再次尝试对话,能够成功解析。 |
Hello, I just tried it, and it is indeed a LAN problem. I opened the minio port to the public network, changed the minio-related IP in lobe.environment in docker-compose.yml to the domain name, and changed the casdoor to the domain name. Again Try the conversation and it can be parsed successfully. |
This issue is closed, If you have any questions, you can comment and reply. |
@arvinxx 您好,这个问题已经找到解决方案,但是对没有公网ip的小伙伴来说,明显不是很友好,辛苦看下能否优化一下这个问题 |
@arvinxx Hello, a solution has been found for this problem, but it is obviously not very friendly to friends who do not have a public IP address. Let’s see if we can optimize this problem. |
|
|
相关参考:#3888 |
是开了,我试一下关掉公网ip映射,关掉客户端请求试试看 |
It is enabled. Let me try turning off the public IP mapping and turning off client requests. |
确实,是客户端请求的问题,感谢 |
Indeed, it is a problem with the client request, thank you |
📦 部署环境
Docker
📌 软件版本
v1.22.26
💻 系统环境
Other Linux
🌐 浏览器
Edge
🐛 问题描述
当我在对话中使用图片得到以下报错
{
"error": {
"code": "invalid_image_url",
"type": "invalid_request_error",
"param": "",
"message": "Error while downloading http://192.168.x.xxx:9000/lobe/files/480463/c5f2ac82-953c-4594-830e-6f9cefca02b8.png. (request id: 2024102307175920149166410055977) (request id: 2024102307172919437048602547446)"
},
"endpoint": "https://ai****ix.com/v1",
"provider": "openai"
}
当我使用浏览器,根据错误信息中的url去访问时,图片能够正常访问
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: