ninegrid2 6.544.0 → 6.546.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.
@@ -80,12 +80,12 @@ class aiContainer extends HTMLElement
80
80
  this.#model = new ChatGoogleGenerativeAI({ model: elSettings.model, apiKey: this.geminiApiKey, temperature: 0,});
81
81
  break;
82
82
  case "openai":
83
- this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey });
83
+ this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey, temperature: 0, });
84
84
  break;
85
85
  case "ollama":
86
86
  this.#model = new Ollama({
87
87
  model: elSettings.model,
88
- host: "http://175.209.197.38:11434",
88
+ host: elSettings.ollamaUrl,
89
89
  });
90
90
  break;
91
91
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  class aiSettings extends HTMLElement
4
4
  {
5
+ #ollamaUrl;
5
6
  #qdrantUrl;
6
7
 
7
8
  EVENT = {
@@ -47,6 +48,9 @@ class aiSettings extends HTMLElement
47
48
  })); */
48
49
  };
49
50
 
51
+ get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
52
+ set ollamaUrl(v) { this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
53
+
50
54
  get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
51
55
  set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
52
56
 
@@ -27520,6 +27520,7 @@ Array.prototype.nineBinarySearch = function(target)
27520
27520
 
27521
27521
  class aiSettings extends HTMLElement
27522
27522
  {
27523
+ #ollamaUrl;
27523
27524
  #qdrantUrl;
27524
27525
 
27525
27526
  EVENT = {
@@ -27565,6 +27566,9 @@ class aiSettings extends HTMLElement
27565
27566
  })); */
27566
27567
  };
27567
27568
 
27569
+ get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
27570
+ set ollamaUrl(v) { this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
27571
+
27568
27572
  get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
27569
27573
  set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
27570
27574
 
@@ -54277,12 +54281,12 @@ class aiContainer extends HTMLElement
54277
54281
  this.#model = new googleGenai.ChatGoogleGenerativeAI({ model: elSettings.model, apiKey: this.geminiApiKey, temperature: 0,});
54278
54282
  break;
54279
54283
  case "openai":
54280
- this.#model = new openai.ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey });
54284
+ this.#model = new openai.ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey, temperature: 0, });
54281
54285
  break;
54282
54286
  case "ollama":
54283
54287
  this.#model = new ollama.Ollama({
54284
54288
  model: elSettings.model,
54285
- host: "http://175.209.197.38:11434",
54289
+ host: elSettings.ollamaUrl,
54286
54290
  });
54287
54291
  break;
54288
54292
  }
@@ -27518,6 +27518,7 @@ Array.prototype.nineBinarySearch = function(target)
27518
27518
 
27519
27519
  class aiSettings extends HTMLElement
27520
27520
  {
27521
+ #ollamaUrl;
27521
27522
  #qdrantUrl;
27522
27523
 
27523
27524
  EVENT = {
@@ -27563,6 +27564,9 @@ class aiSettings extends HTMLElement
27563
27564
  })); */
27564
27565
  };
27565
27566
 
27567
+ get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
27568
+ set ollamaUrl(v) { this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
27569
+
27566
27570
  get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
27567
27571
  set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
27568
27572
 
@@ -54275,12 +54279,12 @@ class aiContainer extends HTMLElement
54275
54279
  this.#model = new ChatGoogleGenerativeAI({ model: elSettings.model, apiKey: this.geminiApiKey, temperature: 0,});
54276
54280
  break;
54277
54281
  case "openai":
54278
- this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey });
54282
+ this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey, temperature: 0, });
54279
54283
  break;
54280
54284
  case "ollama":
54281
54285
  this.#model = new Ollama({
54282
54286
  model: elSettings.model,
54283
- host: "http://175.209.197.38:11434",
54287
+ host: elSettings.ollamaUrl,
54284
54288
  });
54285
54289
  break;
54286
54290
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.544.0",
4
+ "version": "6.546.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -80,12 +80,12 @@ class aiContainer extends HTMLElement
80
80
  this.#model = new ChatGoogleGenerativeAI({ model: elSettings.model, apiKey: this.geminiApiKey, temperature: 0,});
81
81
  break;
82
82
  case "openai":
83
- this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey });
83
+ this.#model = new ChatOpenAI({ model: elSettings.model, apiKey: this.openaiApiKey, temperature: 0, });
84
84
  break;
85
85
  case "ollama":
86
86
  this.#model = new Ollama({
87
87
  model: elSettings.model,
88
- host: "http://175.209.197.38:11434",
88
+ host: elSettings.ollamaUrl,
89
89
  });
90
90
  break;
91
91
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  class aiSettings extends HTMLElement
4
4
  {
5
+ #ollamaUrl;
5
6
  #qdrantUrl;
6
7
 
7
8
  EVENT = {
@@ -47,6 +48,9 @@ class aiSettings extends HTMLElement
47
48
  })); */
48
49
  };
49
50
 
51
+ get ollamaUrl() { return this.#ollamaUrl || "http://localhost:11434"; };
52
+ set ollamaUrl(v) { this.shadowRoot.querySelector("#ollamaUrl").value = this.#ollamaUrl = v; };
53
+
50
54
  get qdrantUrl() { return this.#qdrantUrl || "http://localhost:6333"; };
51
55
  set qdrantUrl(v) { this.shadowRoot.querySelector("#qdrantUrl").value = this.#qdrantUrl = v; };
52
56