Open alanblogooo opened 4 months ago
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
📦 Deployment environment
Docker
v1.1.16
Other Linux
Edge
[Bug] Unable to connect to Ollama remote address, but I can connect to Ollama address normally for conversation using Open WebUI, I don’t understand.
No response
No response
No response
👀 @alanblogooo
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Same issue here
I have the same issue.
因为HTTPS的问题。要么在Chrome设置里“允许不安全”,或者将http进行反向代理到https就OK了。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Because of HTTPS issues. Either "Allow insecure" in Chrome settings, or reverse proxy http to https and it will be OK.
如果你的服务器可以访问到 ollama 的服务的话,可以尝试关掉“客户端请求”,看看能不能解决跨域问题。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
If your server can access ollama's services, you can try turning off "client requests" to see if the cross-domain problem can be solved.
me too
I want to push this issue a bit.
I'm trying to connect to a server in a LAN environment. Chrome the address shows "Ollama is running". I got a friend running another UI (OI), also works without problem. I have opened port for the server, done OLLAMA_HOST OLLAMA_ORIGINS stuff.
I'm out of solutions. If other WebUI can connect but Lobechat cannot, there is a high chance that there is something wrong in Lobechat codes.
@innocentius try close the client fetch and then fetch by server ?
@innocentius try close the client fetch and then fetch by server ?
First of all, tried that already. Secondly, how would it even work? I'm connecting to a LAN address, you expect a remote server to be able to read that address?
Hey, look. I know you guys get a lot of newbees looking for advices without exhausting each and every single solution. Thank you for your contribution, but this is not one of them.
First of all, tried that already. Secondly, how would it even work? I'm connecting to a LAN address, you expect a remote server to be able to read that address?
you mean your LobeChat is deploying on the cloud? If that, it's impossible to fetch from server.
I think you need to show me your env. Because there are lots of factors that combined lead to unuseable.
For example, Safari doesn't allow fetch http url from https website: https://github.com/lobehub/lobe-chat/issues/2327#issuecomment-2126018601
If you deploy LobeChat in the same network with ollama, server fetch can work as I expect.
First of all, tried that already. Secondly, how would it even work? I'm connecting to a LAN address, you expect a remote server to be able to read that address?
you mean your LobeChat is deploying on the cloud? If that, it's impossible to fetch from server.
I think you need to show me your env. Because there are lots of factors that combined lead to unuseable.
For example, Safari doesn't allow fetch http url from https website: #2327 (comment)
If you deploy LobeChat in the same network with ollama, server fetch can work as I expect.
Let me see... how can I put my situation a bit straight forward...
Yes, I'm deploying LobeChat remotely in a VPS (oracle server, docker), I use cloudflare for DNS and the data is proxied from cloudflare. Ollama is deployed in a server that I share LAN connection with (but, all machines include the cloud server share a same zerotier LAN as well). I open up LobeChat in Chrome on my own computer.
I think it could be related to the issue of fetching http url from https websites, but I'm using chrome and according to issue 2327 that problem disappeared after changing. Firefox doesn't work either. I tried to use the zerotier LAN address, native LAN address, with or w/o client fetch on, nothing.
📦 部署环境
Docker
📌 软件版本
v1.1.16
💻 系统环境
Other Linux
🌐 浏览器
Edge
🐛 问题描述
[Bug]无法连接Ollama远程地址,但是我是使用Open WebUI是可以正常链接Ollama地址进行对话的,搞不懂了。
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response