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

Error: ollama version is 0 #21

Open
Matrixsun opened this issue Feb 17, 2024 · 6 comments
Open

Error: ollama version is 0 #21

Matrixsun opened this issue Feb 17, 2024 · 6 comments

Comments

@Matrixsun
Copy link

Matrixsun commented Feb 17, 2024

hi everyone, ollama version is 0.1.23, but I get this error. I can not find the reason, Thanks

22.04.1-Ubuntu

image

image

image

@zenz
Copy link

zenz commented Feb 18, 2024

I have the same error.
Even though I setup ollama to be able to access with public ip(not 127.0.0.1), and set webui-lite to using correct ip for api, still fail with same error.

OK, I noticed that the ollama service changed it's api to compatible with openai, and it cause this error.

@Matrixsun
Copy link
Author

How to solve this problem? thanks

@jynrock
Copy link

jynrock commented Mar 9, 2024

Hi, still the same problem actually.
Anyone found a fix ?

@ZPLSSSTD
Copy link

If you open F12, you will find that it prompts for cross domain issues. Therefore, it is necessary to open cross domain permissions for OLLAMA. I ensure the normal operation of the program by setting the global OLLAMA_ORIGINS="*" in the environment variable。
Here are the configurations in Win10
image

@joevenzon
Copy link

I was still getting these cross-site origin errors even with OLLAMA_ORIGINS set to *, and while running ollama on the same computer as webui-lite. I finally was able to fix the problem by changing the API URL setting in the webapp to have the literal LAN ip address, e.g. 10.0.0.5 instead of localhost. Note that if you want this to be the default, the OLLAMA_API_BASE_URL environment variable doesn't seem to be respected, you have to change the value in src/lib/constants.ts.

@nchanko
Copy link

nchanko commented Apr 29, 2024

I used this command OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve to fix the error . But still doesn't work.And use joevenzon's way to change localhost to LAN ip address. This address only works in same computer. Accessing from other devices in same network still shows error . Any work around?

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

6 participants