-
-
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] Lobe Chat Database -w- PGVECTOR - Cannot change Ollama url #5625
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @sushibait! I'm here to help you with the issue you're experiencing. I can assist you in solving bugs, answering questions, and becoming a contributor. Let's work together to resolve this issue! The issue you're experiencing with changing the Ollama URL in Lobe Chat might be related to the configuration settings not being updated correctly. Here are a few steps you can try to resolve this:
If these steps do not resolve the issue, there might be a deeper configuration problem or a bug in the version you are using. You may want to check for any updates or patches that address this issue. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
I am using the docker-compose lobe-chat database version. I did confirm the network settings / cors on the ollama machine and open-webui connects to it fine from another machine. How do i address this in the docker-compose? |
I have now tried editing the .env file before running the compose command. It did insert the correct url into lobe-chat, but when I use the "check" button, it is still polling 127.0.0.1:11434. Also since you mentioned it, i am not running ollama in docker and i know ollama is running and i can connect to it remotely using other tools. Lobe chat just will not accept any url other than localhost... see screenshot. |
Tried forwarding the port with netsh but that appears to not work either. |
📦 Environment
Docker
📌 Version
1.49.5
💻 Operating System
Windows
🌐 Browser
Chrome, Edge, Firefox
🐛 Bug Description
After installing lobe-chat-database version in docker with pgvector, cannot change the ollama url in lobe-chat. It defaults to the localhost port 11434, but attempting to change this has no effect. Thus, the old CORS error is displayed every time and any attempt to change the url results in the same. I have verified that regardless of what url is entered, lobe still attempts to connect on 127.0.0.1:11434.
A few things I tried:
All other lobe functions are working, including connections to several other LLM providers.
📷 Recurrence Steps
Open lobe chat in browser.
Open dev tools in browser.
Change ollama url and attempt to check connection.
You will see regardless of the url entered, the connection attempt is made on localhost.
🚦 Expected Behavior
Successful connection to ollama.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: