ide-assi 0.259.0 → 0.261.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 +10 -1
- package/dist/bundle.esm.js +10 -1
- package/dist/components/ideAi.js +10 -1
- package/package.json +1 -1
- package/src/components/ideAi.js +10 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -193438,7 +193438,6 @@ 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);
|
|
193442
193441
|
this.#model = new ChatOpenAI({
|
|
193443
193442
|
modelName: this.#parent.settings.model,
|
|
193444
193443
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
@@ -193448,6 +193447,16 @@ class IdeAi
|
|
|
193448
193447
|
});
|
|
193449
193448
|
break;
|
|
193450
193449
|
case "gemini":
|
|
193450
|
+
/**
|
|
193451
|
+
this.#model = new ChatOpenAI({
|
|
193452
|
+
modelName: "google/gemma-2-9b-it",
|
|
193453
|
+
openAIApiKey: this.#parent.settings.geminiApiKey,
|
|
193454
|
+
configuration: {
|
|
193455
|
+
baseURL: "https://openrouter.ai/api/v1",
|
|
193456
|
+
},
|
|
193457
|
+
});
|
|
193458
|
+
console.log(this.#model);
|
|
193459
|
+
*/
|
|
193451
193460
|
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
193452
193461
|
break;
|
|
193453
193462
|
case "openai":
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193434,7 +193434,6 @@ 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);
|
|
193438
193437
|
this.#model = new ChatOpenAI({
|
|
193439
193438
|
modelName: this.#parent.settings.model,
|
|
193440
193439
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
@@ -193444,6 +193443,16 @@ class IdeAi
|
|
|
193444
193443
|
});
|
|
193445
193444
|
break;
|
|
193446
193445
|
case "gemini":
|
|
193446
|
+
/**
|
|
193447
|
+
this.#model = new ChatOpenAI({
|
|
193448
|
+
modelName: "google/gemma-2-9b-it",
|
|
193449
|
+
openAIApiKey: this.#parent.settings.geminiApiKey,
|
|
193450
|
+
configuration: {
|
|
193451
|
+
baseURL: "https://openrouter.ai/api/v1",
|
|
193452
|
+
},
|
|
193453
|
+
});
|
|
193454
|
+
console.log(this.#model);
|
|
193455
|
+
*/
|
|
193447
193456
|
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
193448
193457
|
break;
|
|
193449
193458
|
case "openai":
|
package/dist/components/ideAi.js
CHANGED
|
@@ -22,7 +22,6 @@ 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);
|
|
26
25
|
this.#model = new ChatOpenAI({
|
|
27
26
|
modelName: this.#parent.settings.model,
|
|
28
27
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
@@ -32,6 +31,16 @@ export class IdeAi
|
|
|
32
31
|
});
|
|
33
32
|
break;
|
|
34
33
|
case "gemini":
|
|
34
|
+
/**
|
|
35
|
+
this.#model = new ChatOpenAI({
|
|
36
|
+
modelName: "google/gemma-2-9b-it",
|
|
37
|
+
openAIApiKey: this.#parent.settings.geminiApiKey,
|
|
38
|
+
configuration: {
|
|
39
|
+
baseURL: "https://openrouter.ai/api/v1",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
console.log(this.#model);
|
|
43
|
+
*/
|
|
35
44
|
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
36
45
|
break;
|
|
37
46
|
case "openai":
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -22,7 +22,6 @@ 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);
|
|
26
25
|
this.#model = new ChatOpenAI({
|
|
27
26
|
modelName: this.#parent.settings.model,
|
|
28
27
|
openAIApiKey: this.#parent.settings.CHATOPENAI_API_KEY,
|
|
@@ -32,6 +31,16 @@ export class IdeAi
|
|
|
32
31
|
});
|
|
33
32
|
break;
|
|
34
33
|
case "gemini":
|
|
34
|
+
/**
|
|
35
|
+
this.#model = new ChatOpenAI({
|
|
36
|
+
modelName: "google/gemma-2-9b-it",
|
|
37
|
+
openAIApiKey: this.#parent.settings.geminiApiKey,
|
|
38
|
+
configuration: {
|
|
39
|
+
baseURL: "https://openrouter.ai/api/v1",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
console.log(this.#model);
|
|
43
|
+
*/
|
|
35
44
|
this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
|
|
36
45
|
break;
|
|
37
46
|
case "openai":
|