Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Timeout Control #300

Closed
Marwolaeth opened this issue Feb 5, 2025 · 0 comments · Fixed by #315
Closed

Request for Timeout Control #300

Marwolaeth opened this issue Feb 5, 2025 · 0 comments · Fixed by #315
Milestone

Comments

@Marwolaeth
Copy link

Dear ellmer team,

I hope this message finds you well.

I am experimenting with various local Ollama models and have encountered an intermittent timeout error when using the Ellmer package. The error message is like this:

Error in `httr2::req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [localhost]: Operation timed out after 60003 milliseconds with 0 bytes received

The value of 60003 varies but is always slightly greater than 60000. The main cause seems to be my computer's lack of GPU inference support.

Interestingly, this issue does not occur consistently; smaller models run without any timeout errors. I suspect that this behaviour may be linked to the curl package, which does not seem to honour getOption('timeout') as noted in this GitHub issue.

I have also seen a similar (closed) issue regarding the OpenAI API: Issue #213. Given that the curl and httr2 calls are embedded within the ellmer functions, I would like to kindly request that you consider providing end users with options to control the timeout settings. Alternatively, simply increasing the internal timeout could also be a viable solution.

Thank you for your attention to this matter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants