Request timeout feature #270

Closed
opened 2026-02-15 16:29:24 -05:00 by yindo · 1 comment
Owner

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!

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!
yindo closed this issue 2026-02-15 16:29:24 -05:00
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#270