Closed didikrm closed 5 months ago
@didikrm, do you see any errors in the Chrome extension console logs?
Double checking: Is Ollama started with environment variable OLLAMA_ORIGINS=chrome-extension://*
?
Here is the error code I got:
Access to fetch at 'http://127.0.0.1:11434/api/tags' from origin 'chrome-extension://mdkmkgmeleogeakokmdmcmiphcpinamb' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Context js/options.html Stack Trace js/options.html:0 (anonymous function)
I see that you documented in your readme and I just missed it. This issue has also been reported in the Ollama repository https://github.com/ollama/ollama/issues/2335. A settings option is in the works to set OLLAMA_ORIGINS
In the meantime, are you able to connect to the Ollama API now? If so, I can close this issue.
It is a problem with Oolama, so you can close it. For info, I followed Oolama's Mac OS instructions, restarted Ollama but that didn't work.
launchctl setenv OLLAMA_HOST "chrome-extension://mdkmkgmeleogeakokmdmcmiphcpinamb"
Will wait for a GUI to set the ollama_host variable.
launchctl setenv OLLAMA_HOST "chrome-extension://mdkmkgmeleogeakokmdmcmiphcpinamb"
@didikrm, you need to set OLLAMA_ORIGINS
.
launchctl setenv OLLAMA_ORIGINS "chrome-extension://mdkmkgmeleogeakokmdmcmiphcpinamb"
I'll add documentation in this repo for this step.
Oh my bad! I didn't read the instructions well. It's working now! thanks for your help.
Hello,
The extension does not detect Ollama although I am running on another extension that detects and when I go to http://127.0.0.1:11434, it shows that it's working. Could be related to the fact that I am using Chrome on Mac OS?
Thanks