mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Request timeout feature #270
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 @aulanaufal on GitHub (May 23, 2025).
Hi,
Does this library have the request timeout feature? So that we can set the number of seconds to wait before it is declared as an API fail request.
Thanks!
@ParthSareen commented on GitHub (Jul 1, 2025):
We inherit the httpx client, you should be able to configure it there :)
https://github.com/ollama/ollama-python?tab=readme-ov-file#custom-client
https://www.python-httpx.org/api/#client