ninegrid2 6.619.0 → 6.621.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/ai/aiContainer.js +2 -0
- package/dist/ai/aiSettings.js +1 -1
- package/dist/bundle.cjs.js +3 -1
- package/dist/bundle.esm.js +3 -1
- package/package.json +1 -1
- package/src/ai/aiContainer.js +2 -0
- package/src/ai/aiSettings.js +1 -1
package/dist/ai/aiContainer.js
CHANGED
|
@@ -68,9 +68,11 @@ class aiContainer extends HTMLElement
|
|
|
68
68
|
|
|
69
69
|
switch (this.settings.server) {
|
|
70
70
|
case "gemini":
|
|
71
|
+
console.log(this.settings.geminiApiKey);
|
|
71
72
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
72
73
|
break;
|
|
73
74
|
case "openai":
|
|
75
|
+
console.log(this.settings.openaiApiKey);
|
|
74
76
|
this.#model = new ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
|
|
75
77
|
break;
|
|
76
78
|
case "ollama":
|
package/dist/ai/aiSettings.js
CHANGED
|
@@ -12,7 +12,7 @@ class aiSettings extends HTMLElement
|
|
|
12
12
|
get geminiApiKey() { return this.shadowRoot.querySelector("#geminiApiKey").value; };
|
|
13
13
|
set geminiApiKey(v) { this.shadowRoot.querySelector("#geminiApiKey").value = v; };
|
|
14
14
|
|
|
15
|
-
get openaiApiKey() { this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
15
|
+
get openaiApiKey() { return this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
16
16
|
set openaiApiKey(v) { this.shadowRoot.querySelector("#openaiApiKey").value = v; };
|
|
17
17
|
|
|
18
18
|
get ollamaUrl() { return this.shadowRoot.querySelector("#ollamaUrl").value; };
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27532,7 +27532,7 @@ class aiSettings extends HTMLElement
|
|
|
27532
27532
|
get geminiApiKey() { return this.shadowRoot.querySelector("#geminiApiKey").value; };
|
|
27533
27533
|
set geminiApiKey(v) { this.shadowRoot.querySelector("#geminiApiKey").value = v; };
|
|
27534
27534
|
|
|
27535
|
-
get openaiApiKey() { this.shadowRoot.querySelector("#openaiApiKey").value
|
|
27535
|
+
get openaiApiKey() { return this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
27536
27536
|
set openaiApiKey(v) { this.shadowRoot.querySelector("#openaiApiKey").value = v; };
|
|
27537
27537
|
|
|
27538
27538
|
get ollamaUrl() { return this.shadowRoot.querySelector("#ollamaUrl").value; };
|
|
@@ -54241,9 +54241,11 @@ class aiContainer extends HTMLElement
|
|
|
54241
54241
|
|
|
54242
54242
|
switch (this.settings.server) {
|
|
54243
54243
|
case "gemini":
|
|
54244
|
+
console.log(this.settings.geminiApiKey);
|
|
54244
54245
|
this.#model = new googleGenai.ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
54245
54246
|
break;
|
|
54246
54247
|
case "openai":
|
|
54248
|
+
console.log(this.settings.openaiApiKey);
|
|
54247
54249
|
this.#model = new openai.ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
|
|
54248
54250
|
break;
|
|
54249
54251
|
case "ollama":
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27528,7 +27528,7 @@ class aiSettings extends HTMLElement
|
|
|
27528
27528
|
get geminiApiKey() { return this.shadowRoot.querySelector("#geminiApiKey").value; };
|
|
27529
27529
|
set geminiApiKey(v) { this.shadowRoot.querySelector("#geminiApiKey").value = v; };
|
|
27530
27530
|
|
|
27531
|
-
get openaiApiKey() { this.shadowRoot.querySelector("#openaiApiKey").value
|
|
27531
|
+
get openaiApiKey() { return this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
27532
27532
|
set openaiApiKey(v) { this.shadowRoot.querySelector("#openaiApiKey").value = v; };
|
|
27533
27533
|
|
|
27534
27534
|
get ollamaUrl() { return this.shadowRoot.querySelector("#ollamaUrl").value; };
|
|
@@ -54237,9 +54237,11 @@ class aiContainer extends HTMLElement
|
|
|
54237
54237
|
|
|
54238
54238
|
switch (this.settings.server) {
|
|
54239
54239
|
case "gemini":
|
|
54240
|
+
console.log(this.settings.geminiApiKey);
|
|
54240
54241
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
54241
54242
|
break;
|
|
54242
54243
|
case "openai":
|
|
54244
|
+
console.log(this.settings.openaiApiKey);
|
|
54243
54245
|
this.#model = new ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
|
|
54244
54246
|
break;
|
|
54245
54247
|
case "ollama":
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -68,9 +68,11 @@ class aiContainer extends HTMLElement
|
|
|
68
68
|
|
|
69
69
|
switch (this.settings.server) {
|
|
70
70
|
case "gemini":
|
|
71
|
+
console.log(this.settings.geminiApiKey);
|
|
71
72
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
72
73
|
break;
|
|
73
74
|
case "openai":
|
|
75
|
+
console.log(this.settings.openaiApiKey);
|
|
74
76
|
this.#model = new ChatOpenAI({ model: this.settings.model, apiKey: this.settings.openaiApiKey, temperature: 0, });
|
|
75
77
|
break;
|
|
76
78
|
case "ollama":
|
package/src/ai/aiSettings.js
CHANGED
|
@@ -12,7 +12,7 @@ class aiSettings extends HTMLElement
|
|
|
12
12
|
get geminiApiKey() { return this.shadowRoot.querySelector("#geminiApiKey").value; };
|
|
13
13
|
set geminiApiKey(v) { this.shadowRoot.querySelector("#geminiApiKey").value = v; };
|
|
14
14
|
|
|
15
|
-
get openaiApiKey() { this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
15
|
+
get openaiApiKey() { return this.shadowRoot.querySelector("#openaiApiKey").value };
|
|
16
16
|
set openaiApiKey(v) { this.shadowRoot.querySelector("#openaiApiKey").value = v; };
|
|
17
17
|
|
|
18
18
|
get ollamaUrl() { return this.shadowRoot.querySelector("#ollamaUrl").value; };
|