ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

httpx broke ollama being used within multiple event loops

Open Oscaner opened this issue 1 year ago • 3 comments

AsyncClient does not support being used within multiple event loops https://github.com/encode/httpx/issues/2058

Oscaner avatar Dec 21 '24 07:12 Oscaner

Workaround: using {"headers": {"Connection": "close"}} to disable TCP sharing. https://github.com/encode/httpx/discussions/2959#discussioncomment-7665278

Oscaner avatar Dec 21 '24 08:12 Oscaner

Link: https://github.com/stripe/stripe-python/pull/1248

Oscaner avatar Dec 21 '24 08:12 Oscaner

Hey @Oscaner thanks for reporting - will check this out

ParthSareen avatar Dec 29 '24 22:12 ParthSareen