ide-assi 0.254.0 → 0.256.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 +5 -7
- package/dist/bundle.esm.js +5 -7
- package/dist/components/ideAi.js +5 -7
- package/package.json +1 -1
- package/src/components/ideAi.js +5 -7
package/dist/bundle.cjs.js
CHANGED
|
@@ -193438,18 +193438,16 @@ class IdeAi
|
|
|
193438
193438
|
|
|
193439
193439
|
switch (this.#parent.settings.server) {
|
|
193440
193440
|
case "chatopenai":
|
|
193441
|
-
this.#model = new ChatOpenAI({ modelName: "deepseek-coder", openAIApiKey: this.#parent.settings.chatopenaiApiKey, });
|
|
193442
|
-
break;
|
|
193443
|
-
case "gemini":
|
|
193444
193441
|
this.#model = new ChatOpenAI({
|
|
193445
|
-
modelName: "
|
|
193446
|
-
openAIApiKey: this.#parent.settings.
|
|
193442
|
+
modelName: "google/gemma-2-9b-it",
|
|
193443
|
+
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
193447
193444
|
configuration: {
|
|
193448
193445
|
baseURL: "https://openrouter.ai/api/v1",
|
|
193449
193446
|
},
|
|
193450
193447
|
});
|
|
193451
|
-
|
|
193452
|
-
|
|
193448
|
+
break;
|
|
193449
|
+
case "gemini":
|
|
193450
|
+
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
193453
193451
|
break;
|
|
193454
193452
|
case "openai":
|
|
193455
193453
|
this.#model = new ChatOpenAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.openaiApiKey, temperature: 0, });
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193434,18 +193434,16 @@ class IdeAi
|
|
|
193434
193434
|
|
|
193435
193435
|
switch (this.#parent.settings.server) {
|
|
193436
193436
|
case "chatopenai":
|
|
193437
|
-
this.#model = new ChatOpenAI({ modelName: "deepseek-coder", openAIApiKey: this.#parent.settings.chatopenaiApiKey, });
|
|
193438
|
-
break;
|
|
193439
|
-
case "gemini":
|
|
193440
193437
|
this.#model = new ChatOpenAI({
|
|
193441
|
-
modelName: "
|
|
193442
|
-
openAIApiKey: this.#parent.settings.
|
|
193438
|
+
modelName: "google/gemma-2-9b-it",
|
|
193439
|
+
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
193443
193440
|
configuration: {
|
|
193444
193441
|
baseURL: "https://openrouter.ai/api/v1",
|
|
193445
193442
|
},
|
|
193446
193443
|
});
|
|
193447
|
-
|
|
193448
|
-
|
|
193444
|
+
break;
|
|
193445
|
+
case "gemini":
|
|
193446
|
+
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
193449
193447
|
break;
|
|
193450
193448
|
case "openai":
|
|
193451
193449
|
this.#model = new ChatOpenAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.openaiApiKey, temperature: 0, });
|
package/dist/components/ideAi.js
CHANGED
|
@@ -22,18 +22,16 @@ export class IdeAi
|
|
|
22
22
|
|
|
23
23
|
switch (this.#parent.settings.server) {
|
|
24
24
|
case "chatopenai":
|
|
25
|
-
this.#model = new ChatOpenAI({ modelName: "deepseek-coder", openAIApiKey: this.#parent.settings.chatopenaiApiKey, });
|
|
26
|
-
break;
|
|
27
|
-
case "gemini":
|
|
28
25
|
this.#model = new ChatOpenAI({
|
|
29
|
-
modelName: "
|
|
30
|
-
openAIApiKey: this.#parent.settings.
|
|
26
|
+
modelName: "google/gemma-2-9b-it",
|
|
27
|
+
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
31
28
|
configuration: {
|
|
32
29
|
baseURL: "https://openrouter.ai/api/v1",
|
|
33
30
|
},
|
|
34
31
|
});
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
break;
|
|
33
|
+
case "gemini":
|
|
34
|
+
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
37
35
|
break;
|
|
38
36
|
case "openai":
|
|
39
37
|
this.#model = new ChatOpenAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.openaiApiKey, temperature: 0, });
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -22,18 +22,16 @@ export class IdeAi
|
|
|
22
22
|
|
|
23
23
|
switch (this.#parent.settings.server) {
|
|
24
24
|
case "chatopenai":
|
|
25
|
-
this.#model = new ChatOpenAI({ modelName: "deepseek-coder", openAIApiKey: this.#parent.settings.chatopenaiApiKey, });
|
|
26
|
-
break;
|
|
27
|
-
case "gemini":
|
|
28
25
|
this.#model = new ChatOpenAI({
|
|
29
|
-
modelName: "
|
|
30
|
-
openAIApiKey: this.#parent.settings.
|
|
26
|
+
modelName: "google/gemma-2-9b-it",
|
|
27
|
+
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
31
28
|
configuration: {
|
|
32
29
|
baseURL: "https://openrouter.ai/api/v1",
|
|
33
30
|
},
|
|
34
31
|
});
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
break;
|
|
33
|
+
case "gemini":
|
|
34
|
+
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
37
35
|
break;
|
|
38
36
|
case "openai":
|
|
39
37
|
this.#model = new ChatOpenAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.openaiApiKey, temperature: 0, });
|