mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Simple Chat gives httpx.ConnectError #191
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @designcomputer on GitHub (Dec 29, 2024).
This simple chat example fails:
httpx.ConnectError: [WinError 10049] The requested address is not valid in its context
But this works fine:
The sky appears blue because of a phenomenon called scattering, which occurs when sunlight interacts with the tiny molecules of gases in the Earth's atmosphere.....
@ParthSareen commented on GitHub (Dec 29, 2024):
Hi @designcomputer! Possible this is some kind of firewall issue - is this on windows?
@designcomputer commented on GitHub (Dec 29, 2024):
Yes, I am using a Windows computer, as indicated by the error message. Assuming the chat function defaults to http://localhost:11434 when the host is not explicitly defined, I’m curious why explicitly defining the host resolves the issue. Could this point to something specific about how the chat function currently handles the default host configuration? The failing example obviously worked in the past.
@ParthSareen commented on GitHub (Dec 29, 2024):
Did you have a version at which point this was working? Wondering if this is more so windows related or library related. Don't think there have been any client changes in a while
@designcomputer commented on GitHub (Dec 30, 2024):
I believe it used to function properly. The issue might stem from an update made to httpx or related dependencies.