Commit Graph

2 Commits

Author SHA1 Message Date
ad07dcd644 Add configurable connection timeout to OllamaClient
OllamaClient now applies a 30-second connection timeout by default,
so a down server fails fast instead of blocking indefinitely. No
request timeout is set since LLM responses can legitimately run for
minutes during model loading or long generations.

Added OllamaClient::builder() for custom configuration:

    OllamaClient::builder("http://localhost:11434")
        .connection_timeout(Duration::from_secs(60))
        .build();

Also updated README.md to document the builder API, default()
constructor, tool_response return type change, and think support
in ChatRequest.
2026-01-30 19:56:56 +00:00
0f49c5577c Adds README.md 2026-01-30 19:13:00 +00:00