ninegrid2 6.543.0 → 6.545.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,10 +80,13 @@ 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
- this.#model = new Ollama({ model: elSettings.model });
86
+ this.#model = new Ollama({
87
+ model: elSettings.model,
88
+ host: elSettings.ollamaUrl,
89
+ });
87
90
  break;
88
91
  }
89
92
 
@@ -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
 
@@ -62,7 +66,7 @@ class aiSettings extends HTMLElement
62
66
  }
63
67
 
64
68
  :host {
65
- z-index: 1;
69
+ z-index: 9;
66
70
  display: none;
67
71
  position: absolute;
68
72
  background: #fff;
@@ -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
 
@@ -27580,7 +27584,7 @@ class aiSettings extends HTMLElement
27580
27584
  }
27581
27585
 
27582
27586
  :host {
27583
- z-index: 1;
27587
+ z-index: 9;
27584
27588
  display: none;
27585
27589
  position: absolute;
27586
27590
  background: #fff;
@@ -54277,10 +54281,13 @@ 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
- this.#model = new ollama.Ollama({ model: elSettings.model });
54287
+ this.#model = new ollama.Ollama({
54288
+ model: elSettings.model,
54289
+ host: elSettings.ollamaUrl,
54290
+ });
54284
54291
  break;
54285
54292
  }
54286
54293
 
@@ -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
 
@@ -27578,7 +27582,7 @@ class aiSettings extends HTMLElement
27578
27582
  }
27579
27583
 
27580
27584
  :host {
27581
- z-index: 1;
27585
+ z-index: 9;
27582
27586
  display: none;
27583
27587
  position: absolute;
27584
27588
  background: #fff;
@@ -54275,10 +54279,13 @@ 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
- this.#model = new Ollama({ model: elSettings.model });
54285
+ this.#model = new Ollama({
54286
+ model: elSettings.model,
54287
+ host: elSettings.ollamaUrl,
54288
+ });
54282
54289
  break;
54283
54290
  }
54284
54291
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.543.0",
4
+ "version": "6.545.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -80,10 +80,13 @@ 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
- this.#model = new Ollama({ model: elSettings.model });
86
+ this.#model = new Ollama({
87
+ model: elSettings.model,
88
+ host: elSettings.ollamaUrl,
89
+ });
87
90
  break;
88
91
  }
89
92
 
@@ -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
 
@@ -62,7 +66,7 @@ class aiSettings extends HTMLElement
62
66
  }
63
67
 
64
68
  :host {
65
- z-index: 1;
69
+ z-index: 9;
66
70
  display: none;
67
71
  position: absolute;
68
72
  background: #fff;