ide-assi 0.257.0 → 0.259.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/bundle.cjs.js
CHANGED
|
@@ -193438,8 +193438,9 @@ class IdeAi
|
|
|
193438
193438
|
|
|
193439
193439
|
switch (this.#parent.settings.server) {
|
|
193440
193440
|
case "chatopenai":
|
|
193441
|
+
console.log(this.#parent.settings.model, this.#parent.settings.CHATOPENAI_API_KEY);
|
|
193441
193442
|
this.#model = new ChatOpenAI({
|
|
193442
|
-
modelName:
|
|
193443
|
+
modelName: this.#parent.settings.model,
|
|
193443
193444
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
193444
193445
|
configuration: {
|
|
193445
193446
|
baseURL: "https://openrouter.ai/api/v1",
|
|
@@ -194124,7 +194125,8 @@ class ideAssiSettings extends HTMLElement
|
|
|
194124
194125
|
<label for="server">Server:</label>
|
|
194125
194126
|
</div>
|
|
194126
194127
|
<div class="line contents">
|
|
194127
|
-
<label><input name="server" type="radio" value="
|
|
194128
|
+
<label><input name="server" type="radio" value="chatopenai" checked>Chat Open AI</label>
|
|
194129
|
+
<label><input name="server" type="radio" value="gemini">Gemini</label>
|
|
194128
194130
|
<label><input name="server" type="radio" value="openai">Open AI</label>
|
|
194129
194131
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
194130
194132
|
</div>
|
|
@@ -194159,6 +194161,14 @@ class ideAssiSettings extends HTMLElement
|
|
|
194159
194161
|
<option value="gemini-pro">gemini-pro</option>
|
|
194160
194162
|
</select>
|
|
194161
194163
|
</div>
|
|
194164
|
+
<div class="line subject chatopenai">
|
|
194165
|
+
<label for="chatopenaiModel">Model:</label>
|
|
194166
|
+
</div>
|
|
194167
|
+
<div class="line contents gemini">
|
|
194168
|
+
<select id="chatopenaiModel">
|
|
194169
|
+
<option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
|
|
194170
|
+
</select>
|
|
194171
|
+
</div>
|
|
194162
194172
|
<div class="line subject openai">
|
|
194163
194173
|
<label for="openaiModel">Model:</label>
|
|
194164
194174
|
</div>
|
|
@@ -194185,7 +194195,7 @@ class ideAssiSettings extends HTMLElement
|
|
|
194185
194195
|
this.#init();
|
|
194186
194196
|
|
|
194187
194197
|
setTimeout(() => {
|
|
194188
|
-
this.server = "
|
|
194198
|
+
this.server = "chatopenai";
|
|
194189
194199
|
}, 0);
|
|
194190
194200
|
};
|
|
194191
194201
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193434,8 +193434,9 @@ class IdeAi
|
|
|
193434
193434
|
|
|
193435
193435
|
switch (this.#parent.settings.server) {
|
|
193436
193436
|
case "chatopenai":
|
|
193437
|
+
console.log(this.#parent.settings.model, this.#parent.settings.CHATOPENAI_API_KEY);
|
|
193437
193438
|
this.#model = new ChatOpenAI({
|
|
193438
|
-
modelName:
|
|
193439
|
+
modelName: this.#parent.settings.model,
|
|
193439
193440
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
193440
193441
|
configuration: {
|
|
193441
193442
|
baseURL: "https://openrouter.ai/api/v1",
|
|
@@ -194120,7 +194121,8 @@ class ideAssiSettings extends HTMLElement
|
|
|
194120
194121
|
<label for="server">Server:</label>
|
|
194121
194122
|
</div>
|
|
194122
194123
|
<div class="line contents">
|
|
194123
|
-
<label><input name="server" type="radio" value="
|
|
194124
|
+
<label><input name="server" type="radio" value="chatopenai" checked>Chat Open AI</label>
|
|
194125
|
+
<label><input name="server" type="radio" value="gemini">Gemini</label>
|
|
194124
194126
|
<label><input name="server" type="radio" value="openai">Open AI</label>
|
|
194125
194127
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
194126
194128
|
</div>
|
|
@@ -194155,6 +194157,14 @@ class ideAssiSettings extends HTMLElement
|
|
|
194155
194157
|
<option value="gemini-pro">gemini-pro</option>
|
|
194156
194158
|
</select>
|
|
194157
194159
|
</div>
|
|
194160
|
+
<div class="line subject chatopenai">
|
|
194161
|
+
<label for="chatopenaiModel">Model:</label>
|
|
194162
|
+
</div>
|
|
194163
|
+
<div class="line contents gemini">
|
|
194164
|
+
<select id="chatopenaiModel">
|
|
194165
|
+
<option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
|
|
194166
|
+
</select>
|
|
194167
|
+
</div>
|
|
194158
194168
|
<div class="line subject openai">
|
|
194159
194169
|
<label for="openaiModel">Model:</label>
|
|
194160
194170
|
</div>
|
|
@@ -194181,7 +194191,7 @@ class ideAssiSettings extends HTMLElement
|
|
|
194181
194191
|
this.#init();
|
|
194182
194192
|
|
|
194183
194193
|
setTimeout(() => {
|
|
194184
|
-
this.server = "
|
|
194194
|
+
this.server = "chatopenai";
|
|
194185
194195
|
}, 0);
|
|
194186
194196
|
};
|
|
194187
194197
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -22,8 +22,9 @@ export class IdeAi
|
|
|
22
22
|
|
|
23
23
|
switch (this.#parent.settings.server) {
|
|
24
24
|
case "chatopenai":
|
|
25
|
+
console.log(this.#parent.settings.model, this.#parent.settings.CHATOPENAI_API_KEY);
|
|
25
26
|
this.#model = new ChatOpenAI({
|
|
26
|
-
modelName:
|
|
27
|
+
modelName: this.#parent.settings.model,
|
|
27
28
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
28
29
|
configuration: {
|
|
29
30
|
baseURL: "https://openrouter.ai/api/v1",
|
|
@@ -59,7 +59,8 @@ class ideAssiSettings extends HTMLElement
|
|
|
59
59
|
<label for="server">Server:</label>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="line contents">
|
|
62
|
-
<label><input name="server" type="radio" value="
|
|
62
|
+
<label><input name="server" type="radio" value="chatopenai" checked>Chat Open AI</label>
|
|
63
|
+
<label><input name="server" type="radio" value="gemini">Gemini</label>
|
|
63
64
|
<label><input name="server" type="radio" value="openai">Open AI</label>
|
|
64
65
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
65
66
|
</div>
|
|
@@ -94,6 +95,14 @@ class ideAssiSettings extends HTMLElement
|
|
|
94
95
|
<option value="gemini-pro">gemini-pro</option>
|
|
95
96
|
</select>
|
|
96
97
|
</div>
|
|
98
|
+
<div class="line subject chatopenai">
|
|
99
|
+
<label for="chatopenaiModel">Model:</label>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="line contents gemini">
|
|
102
|
+
<select id="chatopenaiModel">
|
|
103
|
+
<option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
|
|
104
|
+
</select>
|
|
105
|
+
</div>
|
|
97
106
|
<div class="line subject openai">
|
|
98
107
|
<label for="openaiModel">Model:</label>
|
|
99
108
|
</div>
|
|
@@ -120,7 +129,7 @@ class ideAssiSettings extends HTMLElement
|
|
|
120
129
|
this.#init();
|
|
121
130
|
|
|
122
131
|
setTimeout(() => {
|
|
123
|
-
this.server = "
|
|
132
|
+
this.server = "chatopenai";
|
|
124
133
|
}, 0);
|
|
125
134
|
};
|
|
126
135
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -22,8 +22,9 @@ export class IdeAi
|
|
|
22
22
|
|
|
23
23
|
switch (this.#parent.settings.server) {
|
|
24
24
|
case "chatopenai":
|
|
25
|
+
console.log(this.#parent.settings.model, this.#parent.settings.CHATOPENAI_API_KEY);
|
|
25
26
|
this.#model = new ChatOpenAI({
|
|
26
|
-
modelName:
|
|
27
|
+
modelName: this.#parent.settings.model,
|
|
27
28
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
28
29
|
configuration: {
|
|
29
30
|
baseURL: "https://openrouter.ai/api/v1",
|
|
@@ -59,7 +59,8 @@ class ideAssiSettings extends HTMLElement
|
|
|
59
59
|
<label for="server">Server:</label>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="line contents">
|
|
62
|
-
<label><input name="server" type="radio" value="
|
|
62
|
+
<label><input name="server" type="radio" value="chatopenai" checked>Chat Open AI</label>
|
|
63
|
+
<label><input name="server" type="radio" value="gemini">Gemini</label>
|
|
63
64
|
<label><input name="server" type="radio" value="openai">Open AI</label>
|
|
64
65
|
<label><input name="server" type="radio" value="ollama">Ollama</label>
|
|
65
66
|
</div>
|
|
@@ -94,6 +95,14 @@ class ideAssiSettings extends HTMLElement
|
|
|
94
95
|
<option value="gemini-pro">gemini-pro</option>
|
|
95
96
|
</select>
|
|
96
97
|
</div>
|
|
98
|
+
<div class="line subject chatopenai">
|
|
99
|
+
<label for="chatopenaiModel">Model:</label>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="line contents gemini">
|
|
102
|
+
<select id="chatopenaiModel">
|
|
103
|
+
<option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
|
|
104
|
+
</select>
|
|
105
|
+
</div>
|
|
97
106
|
<div class="line subject openai">
|
|
98
107
|
<label for="openaiModel">Model:</label>
|
|
99
108
|
</div>
|
|
@@ -120,7 +129,7 @@ class ideAssiSettings extends HTMLElement
|
|
|
120
129
|
this.#init();
|
|
121
130
|
|
|
122
131
|
setTimeout(() => {
|
|
123
|
-
this.server = "
|
|
132
|
+
this.server = "chatopenai";
|
|
124
133
|
}, 0);
|
|
125
134
|
};
|
|
126
135
|
|