Commit Graph

5 Commits

Author SHA1 Message Date
5bad832353 feat: implement api/show endpoint 2026-02-02 10:19:42 +00:00
0f796f1a2f Add embed endpoint (POST /api/embed)
Implement the Ollama POST /api/embed endpoint for generating vector
embeddings from text input.

- Add EmbedInput, EmbedRequest, EmbedResponse types in src/types/embed.rs
- Add OllamaClient::embed() async method in src/lib.rs
- Register embed module in src/types/mod.rs
- Add usage example in examples/embed.rs
- Update README with embed endpoint documentation
2026-02-01 21:26:44 +00:00
fe74d78645 Update README with delete endpoint documentation 2026-02-01 21:18:15 +00:00
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