Skip to content
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

HTML page giving error : Unable to access Ollama server #38

Open
hemangjoshi37a opened this issue Jan 15, 2024 · 5 comments
Open

HTML page giving error : Unable to access Ollama server #38

hemangjoshi37a opened this issue Jan 15, 2024 · 5 comments

Comments

@hemangjoshi37a
Copy link

I have entered the right path of ollama API 0.0.0.0:11434


Ollama-ui was unable to communitcate with Ollama due to the following error:

Unexpected token '<', "<!DOCTYPE "... is not valid JSON

How can I expose the Ollama server?

By default, Ollama allows cross origin requests from 127.0.0.1 and 0.0.0.0.

To support more origins, you can use the OLLAMA_ORIGINS environment variable:

OLLAMA_ORIGINS=http://127.0.0.1:8000 ollama serve
Also see: https://github.com/jmorganca/ollama/blob/main/docs/faq.md

Screenshot from 2024-01-15 13-05-07

Screenshot from 2024-01-15 13-07-11

https://hjlabs.in

@justwjx
Copy link

justwjx commented Jan 15, 2024

same here

@4thanks
Copy link

4thanks commented Feb 26, 2024

just localhost work for me
图片

@rtcfirefly
Copy link
Collaborator

Hi all,

If you can send the commands you are using to launch ollama and the web servers, I can take a look.

Thanks!

@hemangjoshi37a
Copy link
Author

I am just using https://github.com/open-webui/open-webui and it works great for me.

@mrdjohnson
Copy link

I had some users for LLM-X (my version of this app) that were using powershell. the command is different there:
image

It should work the same here!

Powershell users try: $env:OLLAMA_ORIGINS="https://%2A.github.io/"; ollama serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants