-
Notifications
You must be signed in to change notification settings - Fork 1.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
error: undefined - MacOS Ollama #224
Comments
Tried reproducing but couldn't see anything, can you provide more information? Can you provide a screenshot of the settings menu. |
I run Perplexica on a Mac. Ollama is running on the Mac app because I see when Ollama has a pending update with the icon. if you follow the Perplexica compose installation, and you put OLLAMA = "http://host.docker.internal:11434" on the Config.toml file you should have Perplexica running. By default Perplexica frontend is on localhost:3000, see if you have anything listening there |
Getting the same bug |
|
Have you configured the OpenAI API key or the Groq API key or the Ollama address? Once of them is required for Perplexica to work. |
Sorry for late reply. Yes I gave Ollama docker port address, which was successfully running in my local but it still did not work |
[GENERAL] [API_KEYS] [API_ENDPOINTS] |
What OS are you on?
|
+1 - Getting the same issue. I'm running Ollama on Ubuntu Server. IP address and port set in the Perplexica config works on all other apps. Inference seems to be triggered, but after about 3 seconds Perplexica throws the following error:
|
What are the logs from the backend container? |
Version 14.3 (23D56) MacOS Sonoma |
I have an OpenAI API key configured as well as the Ollama server URI, but switching to Ollama seems to require a fake GROQ API key in order to work. Using
|
This issue is now resolved with 8539ce8. I'd recommend everyone to re-install Perplexica. docker compose up -d --build Note: Run this only after re-cloning the repository. |
Did this but now nothing works. Do I need to change or do anything else? Update: Even though I've selected OpenAI, it seems there are some Ollama related errors occurring. My Ollama settings were correct and were working with the fake GROQ API key before this last commit:
|
Also experiencing the same wit Ollama |
@ItzCrazyKns - After your last commit, it seems that having any Ollama settings in place stop Perplexica from working at all. Removing the Ollama URI and GROQ API key, and OpenAI settings work. As another using mentioned, Ollama is no longer an option in the "Chat Model Provider" list - just OpenAI and "Custom_OpenAI" |
Just did another commit, 27e6f5b, that should help |
How should Ollama work now? The option is still not in the drop down. There's "Custom_OpenAI" and then the Ollama URI parameter separately to that. Earlier there was a separate option for Ollama in the model provider list... |
I've re-cloned and re-set up everything, and now it works to me. Also had to clear cache and cookies, at the first attempt it was showing the same error |
Are you able to get Ollama working? |
Yes, it's working fine for me now! |
the same error |
Yes, it works for me with Ollama, after re setting up everything, and clearing cache and cookies of the webpage from my browser |
I was facing the same 'Invalid URL' error on my mac. I tried some solution from this thread. Then I figured out, that config.toml is baked right in the backends docker image. So every time you do a change, you have to rebuild the docker images by doing
After that I got it running. There is still another problem with the searxng container (Cannot load engine “gentoo”), but since I am using my already existing instance that does not matter for me. see #257 |
The problem re-appeared. Deleting the cookies solved it. |
Describe the bug
I'm not able to search running Perplexica as a docker container locally and Ollama.
To Reproduce
Ollama installation
confirm the service is working
config file:
open http://localhost:3000 and do any search ...
Expected behavior
Perplexica be able to return answers for any query with no errors
Additional context
Anytime I try to search for something I see
error: undefined
in the log entries:The text was updated successfully, but these errors were encountered: