Closed RussellXY closed 5 months ago
Where is your ollama service running? If it's not locally on port 11434, you'll need to change it by setting the OLLAMA_HOST
environment variable or creating a custom client ollama.Client(base_url='...').chat(...)
Where is your ollama service running? If it's not locally on port 11434, you'll need to change it by setting the
OLLAMA_HOST
environment variable or creating a custom clientollama.Client(base_url='...').chat(...)
I'm sorry, it's my fault. I'm using a VPN for all network requests on my computer, that's the reason for the 502 bad gateway thank you for your reply🙏
I'm sure the ollama service is running with this command:
ollama serve
. but I still got this when run the sample code: