ide-assi 0.261.0 → 0.263.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.
@@ -193447,16 +193447,6 @@ class IdeAi
193447
193447
  });
193448
193448
  break;
193449
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
- */
193460
193450
  this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
193461
193451
  break;
193462
193452
  case "openai":
@@ -193630,6 +193620,8 @@ class IdeAi
193630
193620
  #what = async (userPrompt) => {
193631
193621
  const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
193632
193622
 
193623
+ console.log(o);
193624
+
193633
193625
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193634
193626
  if (o.result === "0") throw new Error(o.reason);
193635
193627
  }
@@ -194173,7 +194165,7 @@ class ideAssiSettings extends HTMLElement
194173
194165
  <div class="line subject chatopenai">
194174
194166
  <label for="chatopenaiModel">Model:</label>
194175
194167
  </div>
194176
- <div class="line contents gemini">
194168
+ <div class="line contents chatopenai">
194177
194169
  <select id="chatopenaiModel">
194178
194170
  <option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
194179
194171
  </select>
@@ -193443,16 +193443,6 @@ class IdeAi
193443
193443
  });
193444
193444
  break;
193445
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
- */
193456
193446
  this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
193457
193447
  break;
193458
193448
  case "openai":
@@ -193626,6 +193616,8 @@ class IdeAi
193626
193616
  #what = async (userPrompt) => {
193627
193617
  const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
193628
193618
 
193619
+ console.log(o);
193620
+
193629
193621
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
193630
193622
  if (o.result === "0") throw new Error(o.reason);
193631
193623
  }
@@ -194169,7 +194161,7 @@ class ideAssiSettings extends HTMLElement
194169
194161
  <div class="line subject chatopenai">
194170
194162
  <label for="chatopenaiModel">Model:</label>
194171
194163
  </div>
194172
- <div class="line contents gemini">
194164
+ <div class="line contents chatopenai">
194173
194165
  <select id="chatopenaiModel">
194174
194166
  <option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
194175
194167
  </select>
@@ -31,16 +31,6 @@ export class IdeAi
31
31
  });
32
32
  break;
33
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
- */
44
34
  this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
45
35
  break;
46
36
  case "openai":
@@ -214,6 +204,8 @@ export class IdeAi
214
204
  #what = async (userPrompt) => {
215
205
  const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
216
206
 
207
+ console.log(o);
208
+
217
209
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
218
210
  if (o.result === "0") throw new Error(o.reason);
219
211
  }
@@ -98,7 +98,7 @@ class ideAssiSettings extends HTMLElement
98
98
  <div class="line subject chatopenai">
99
99
  <label for="chatopenaiModel">Model:</label>
100
100
  </div>
101
- <div class="line contents gemini">
101
+ <div class="line contents chatopenai">
102
102
  <select id="chatopenaiModel">
103
103
  <option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
104
104
  </select>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.261.0",
4
+ "version": "0.263.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -31,16 +31,6 @@ export class IdeAi
31
31
  });
32
32
  break;
33
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
- */
44
34
  this.#model = new ChatGoogleGenerativeAI({ model: this.#parent.settings.model, apiKey: this.#parent.settings.geminiApiKey, temperature: 0,});
45
35
  break;
46
36
  case "openai":
@@ -214,6 +204,8 @@ export class IdeAi
214
204
  #what = async (userPrompt) => {
215
205
  const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
216
206
 
207
+ console.log(o);
208
+
217
209
  if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
218
210
  if (o.result === "0") throw new Error(o.reason);
219
211
  }
@@ -98,7 +98,7 @@ class ideAssiSettings extends HTMLElement
98
98
  <div class="line subject chatopenai">
99
99
  <label for="chatopenaiModel">Model:</label>
100
100
  </div>
101
- <div class="line contents gemini">
101
+ <div class="line contents chatopenai">
102
102
  <select id="chatopenaiModel">
103
103
  <option value="google/gemma-2-9b-it">google/gemma-2-9b-it</option>
104
104
  </select>