mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
httpx broke ollama being used within multiple event loops #189
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 @Oscaner on GitHub (Dec 21, 2024).
Originally assigned to: @ParthSareen on GitHub.
AsyncClient does not support being used within multiple event loops
https://github.com/encode/httpx/issues/2058
@Oscaner commented on GitHub (Dec 21, 2024):
Workaround:
using
{"headers": {"Connection": "close"}}to disable TCP sharing.https://github.com/encode/httpx/discussions/2959#discussioncomment-7665278
@Oscaner commented on GitHub (Dec 21, 2024):
Link: https://github.com/stripe/stripe-python/pull/1248
@ParthSareen commented on GitHub (Dec 29, 2024):
Hey @Oscaner thanks for reporting - will check this out