@zhivex-ai/ollama 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -5,9 +5,37 @@ Ollama adapter for Zhivex AI SDK.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- bun add @zhivex-ai/ollama
8
+ bun add @zhivex-ai/sdk @zhivex-ai/ollama
9
9
  ```
10
10
 
11
+ ## Usage
12
+
13
+ Start Ollama and pull the model before running the example:
14
+
15
+ ```bash
16
+ ollama pull llama3.2
17
+ ```
18
+
19
+ ```ts
20
+ import { generateText } from "@zhivex-ai/sdk";
21
+ import { createOllama } from "@zhivex-ai/ollama";
22
+
23
+ const ollama = createOllama({
24
+ baseURL: process.env.OLLAMA_HOST ?? "http://localhost:11434"
25
+ });
26
+
27
+ const result = await generateText({
28
+ model: ollama("llama3.2"),
29
+ prompt: "Explain why local inference is useful."
30
+ });
31
+
32
+ console.log(result.text);
33
+ ```
34
+
35
+ The adapter supports streaming, callable tools, JSON/structured output, image input for compatible models, and text embeddings through `ollama.embeddingModel(modelId)`. It does not expose provider-hosted tools, remote MCP, audio, files, or shared reasoning controls. Exact capabilities still depend on the locally installed Ollama model.
36
+
37
+ `createOllama()` reads `OLLAMA_HOST` and otherwise defaults to `http://localhost:11434`. An explicit `baseURL` takes precedence.
38
+
11
39
  Repository and full documentation:
12
40
 
13
41
  - <https://github.com/Zhivex/zhivex-ai-sdk>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhivex-ai/ollama",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Ollama adapter for Zhivex AI SDK.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@zhivex-ai/core": "^0.20.0",
44
+ "@zhivex-ai/core": "^1.0.0",
45
45
  "zod": "^4.4.3"
46
46
  }
47
47
  }