@sisu-ai/adapter-ollama 3.0.1 → 3.1.0
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.
- package/README.md +16 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Ollama Chat adapter with native tools support.
|
|
4
4
|
|
|
5
|
+
[](https://github.com/finger-gun/sisu/actions/workflows/tests.yml)
|
|
6
|
+
[](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
7
|
+
[](https://www.npmjs.com/package/@sisu-ai/adapter-ollama)
|
|
8
|
+
[](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
9
|
+
|
|
5
10
|
## Setup
|
|
6
11
|
```bash
|
|
7
12
|
npm i @sisu-ai/adapter-ollama
|
|
@@ -32,3 +37,14 @@ const model = ollamaAdapter({ model: 'llama3.1' });
|
|
|
32
37
|
- Tool choice forcing is model-dependent; current loop asks for tools on first turn and plain completion on second.
|
|
33
38
|
- Streaming can be added via Ollama's streaming API if desired.
|
|
34
39
|
- Env: `OLLAMA_BASE_URL` or `BASE_URL` can override the base URL (or pass `baseUrl` in code). Examples may also support a CLI flag `--base-url` to override env.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# Community & Support
|
|
43
|
+
|
|
44
|
+
Discover what you can do through examples or documentation. Check it out at https://github.com/finger-gun/sisu. Example projects live under [`examples/`](https://github.com/finger-gun/sisu/tree/main/examples) in the repo.
|
|
45
|
+
|
|
46
|
+
- [Code of Conduct](https://github.com/finger-gun/sisu/blob/main/CODE_OF_CONDUCT.md)
|
|
47
|
+
- [Contributing Guide](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
|
|
48
|
+
- [License](https://github.com/finger-gun/sisu/blob/main/LICENSE)
|
|
49
|
+
- [Report a Bug](https://github.com/finger-gun/sisu/issues/new?template=bug_report.md)
|
|
50
|
+
- [Request a Feature](https://github.com/finger-gun/sisu/issues/new?template=feature_request.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisu-ai/adapter-ollama",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"build": "tsc -b"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
|
-
"@sisu-ai/core": "1.0.
|
|
27
|
+
"@sisu-ai/core": "1.0.2"
|
|
27
28
|
},
|
|
28
29
|
"keywords": [
|
|
29
30
|
"sisu",
|