Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves timeout issues with older machines (especially those running on CPU) caused by a 300 second timeout constant.
whatwg-fetchimport in favor ofundicitimeoutprop to the request options, passing those to a newAgentResolves #72
Tests
On a crummy computer (or resource limited container) run:
Resulting in:
{ "model": "gemma3:27b", "created_at": "2025-05-19T18:23:45.15035873Z", "message": { "role": "assistant", "content": "The sky is blue because of a phenomenon called **Rayleigh scattering**. Here's a breakdown..." }, "done_reason": "stop", "done": true, "total_duration": 470459553167, "load_duration": 6352338645, "prompt_eval_count": 15, "prompt_eval_duration": 4274237804, "eval_count": 500, "eval_duration": 459831723963 }7 minutes, nice!