ollama-python
ollama-python copied to clipboard
httpx broke ollama being used within multiple event loops
AsyncClient does not support being used within multiple event loops https://github.com/encode/httpx/issues/2058
Workaround:
using {"headers": {"Connection": "close"}} to disable TCP sharing.
https://github.com/encode/httpx/discussions/2959#discussioncomment-7665278
Link: https://github.com/stripe/stripe-python/pull/1248
Hey @Oscaner thanks for reporting - will check this out