@saltcorn/large-language-model 0.7.6 → 0.7.7
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/generate.js +3 -1
- package/package.json +1 -1
package/generate.js
CHANGED
|
@@ -108,7 +108,9 @@ const getCompletion = async (config, opts) => {
|
|
|
108
108
|
|
|
109
109
|
const { Ollama } = ollamaMod;
|
|
110
110
|
|
|
111
|
-
const ollama = new Ollama(
|
|
111
|
+
const ollama = new Ollama(
|
|
112
|
+
config.ollama_host ? { host: config.ollama_host } : undefined
|
|
113
|
+
);
|
|
112
114
|
const olres = await ollama.generate({
|
|
113
115
|
model: opts?.model || config.model,
|
|
114
116
|
...opts,
|