@digipair/skill-ollama 0.114.7 → 0.115.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/dist/index.cjs.js +2 -3
- package/dist/index.esm.js +64867 -48354
- package/dist/src/lib/skill-ollama.d.ts +1 -2
- package/dist/src/lib/skill-ollama.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var ollama = require('@langchain/
|
|
4
|
-
var ollama$1 = require('@langchain/community/embeddings/ollama');
|
|
3
|
+
var ollama = require('@langchain/ollama');
|
|
5
4
|
|
|
6
5
|
let OllamaService = class OllamaService {
|
|
7
6
|
async model(params, _pinsSettingsList, context) {
|
|
@@ -16,7 +15,7 @@ let OllamaService = class OllamaService {
|
|
|
16
15
|
}
|
|
17
16
|
async embeddings(params, _pinsSettingsList, context) {
|
|
18
17
|
const { model = 'nomic-embed-text', baseUrl = context.privates.OLLAMA_SERVER ?? process.env['OLLAMA_SERVER'] ?? 'http://localhost:11434' } = params;
|
|
19
|
-
const modelInstance = new ollama
|
|
18
|
+
const modelInstance = new ollama.OllamaEmbeddings({
|
|
20
19
|
model,
|
|
21
20
|
baseUrl
|
|
22
21
|
});
|