Merge pull request #2 from andreban/update-readme-delete-endpoint

Update README with delete endpoint documentation
This commit is contained in:
2026-02-01 21:19:10 +00:00
committed by GitHub

View File

@@ -8,7 +8,7 @@ An async Rust client library for the [Ollama](https://ollama.com/) API. Provides
- Text generation and multi-turn chat conversations - Text generation and multi-turn chat conversations
- Structured JSON output with schema validation - Structured JSON output with schema validation
- Tool calling / function calling support - Tool calling / function calling support
- Model management (list, pull, inspect running models) - Model management (list, pull, delete, inspect running models)
- Builder pattern for constructing requests - Builder pattern for constructing requests
- Configurable generation parameters (temperature, top-k, top-p, and more) - Configurable generation parameters (temperature, top-k, top-p, and more)
- Thinking / reasoning mode support - Thinking / reasoning mode support
@@ -160,6 +160,7 @@ When the model decides to call a tool, the response `message.tool_calls` field w
| `generate(request)` | Generate text (streaming) | | `generate(request)` | Generate text (streaming) |
| `chat(request)` | Chat conversation (streaming) | | `chat(request)` | Chat conversation (streaming) |
| `pull(request)` | Pull/download a model (streaming) | | `pull(request)` | Pull/download a model (streaming) |
| `delete(request)` | Delete a model from the server |
**`OllamaClient::builder(server_address)`** -- `.connection_timeout(Duration)`, `.build()` **`OllamaClient::builder(server_address)`** -- `.connection_timeout(Duration)`, `.build()`
@@ -206,6 +207,7 @@ The `examples/` directory contains runnable programs:
| `structured_output` | JSON structured output with schema | | `structured_output` | JSON structured output with schema |
| `tool_call` | Function calling / tool use | | `tool_call` | Function calling / tool use |
| `pull` | Download a model | | `pull` | Download a model |
| `delete` | Delete a model |
| `tags` | List available models | | `tags` | List available models |
| `ps` | List running models | | `ps` | List running models |
| `version` | Query server version | | `version` | Query server version |