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

httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://ADDRESS:11434/api/chat' #1993

Open
JayCroghan opened this issue Jul 10, 2024 · 3 comments
Labels
needs confirmation A potential bug that needs to be confirmed

Comments

@JayCroghan
Copy link

JayCroghan commented Jul 10, 2024

I have OpenWebUI running fine with Ollama on another machine. I am trying to use the same endpoint with PrivateGPT but it gives me 502.

When attempting to query just the Ollama LLM:

HTTP Request: POST http://ADDRESS:11434/api/chat "HTTP/1.1 502 Bad Gateway"

But this works fine from the bash prompt on the same machine that PrivateGPT is running:

curl http://ADDRESS:11434/api/chat -d '{ "model": "llama3-chatqa", "prompt": "What is water made of?" }'

embedding_api_base is set to the same as api_base which are both set to http://ADDRESS:11434

This page: https://docs.privategpt.dev/installation/getting-started/installation

Local, Ollama-powered setup - RECOMMENDED - this does not work out of the box. Ontop of the 502 error, now it gives me tons of other errors in the background. I have changed nothing except the API URL.

image
@jaluma jaluma added the needs confirmation A potential bug that needs to be confirmed label Jul 10, 2024
@jaluma
Copy link
Collaborator

jaluma commented Jul 10, 2024

Can you confirm us your ollama version? I'm using 0.1.48 without any issue

@JayCroghan
Copy link
Author

image

@jaluma
Copy link
Collaborator

jaluma commented Jul 10, 2024

Has you pulled last changes? Have you reinstalled dependencies and extras?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs confirmation A potential bug that needs to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants