feat: implement api/show endpoint

This commit is contained in:
2026-02-02 10:19:42 +00:00
parent 6f14e5e908
commit 5bad832353
6 changed files with 168 additions and 1 deletions

View File

@@ -162,6 +162,7 @@ When the model decides to call a tool, the response `message.tool_calls` field w
| `chat(request)` | Chat conversation (streaming) |
| `pull(request)` | Pull/download a model (streaming) |
| `delete(request)` | Delete a model from the server |
| `show_model(request)` | Show information about a model |
| `embed(request)` | Generate vector embeddings |
**`OllamaClient::builder(server_address)`** -- `.connection_timeout(Duration)`, `.build()`
@@ -185,6 +186,8 @@ let client = OllamaClient::builder("http://localhost:11434")
**`EmbedRequest::builder(model)`** -- `.input()`, `.inputs()`, `.truncate()`, `.dimensions()`, `.keep_alive()`, `.options()`
**`ShowModelRequest::new(model)`** -- `.verbose()`
### Generation Options
Configure sampling parameters via `Options::builder()`:
@@ -212,6 +215,7 @@ The `examples/` directory contains runnable programs:
| `tool_call` | Function calling / tool use |
| `pull` | Download a model |
| `delete` | Delete a model |
| `show_model` | Show model information |
| `embed` | Generate text embeddings |
| `tags` | List available models |
| `ps` | List running models |