mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 00:55:21 -04:00
Timeout error after approximately 10 seconds when running on macOS #112
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 @m358807551 on GitHub (Jul 18, 2024).
Description
I am encountering a timeout error when running the following code on macOS. The error occurs approximately 10 seconds after the request is made. I would like to know if there is a way to configure or extend the timeout setting to handle longer response times.
Code to Reproduce
Error Message
@ArnoldIOI commented on GitHub (Aug 1, 2024):
The only way to configure the
timeoutseems to be passing the timeout param here.A walkaround can be initialising a new
Clientwith a timeout param, and use the new client to call apis.Code to Reproduce
Output
@ArnoldIOI commented on GitHub (Aug 1, 2024):
There’s an example in the README for Custom Client.