@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.
Files changed (2) hide show
  1. package/generate.js +3 -1
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/large-language-model",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Large language models and functionality for Saltcorn",
5
5
  "main": "index.js",
6
6
  "dependencies": {