ide-assi 0.19.0 → 0.20.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 +13 -3
- package/dist/bundle.esm.js +13 -3
- package/dist/components/ideAi.js +12 -2
- package/dist/components/ideAssi.js +1 -1
- package/package.json +1 -1
- package/src/components/ideAi.js +12 -2
- package/src/components/ideAssi.js +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -193315,7 +193315,7 @@ class IdeAi
|
|
|
193315
193315
|
console.log(menus);
|
|
193316
193316
|
console.log(tables);
|
|
193317
193317
|
|
|
193318
|
-
|
|
193318
|
+
await fetch(`${this.#API_URL}/ai/inferSourceMeta`, {
|
|
193319
193319
|
method: "POST",
|
|
193320
193320
|
headers: { "Content-Type": "application/json" },
|
|
193321
193321
|
body: JSON.stringify({
|
|
@@ -193325,7 +193325,17 @@ class IdeAi
|
|
|
193325
193325
|
})
|
|
193326
193326
|
});
|
|
193327
193327
|
|
|
193328
|
-
|
|
193328
|
+
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
193329
|
+
method: "POST",
|
|
193330
|
+
headers: { "Content-Type": "application/json" },
|
|
193331
|
+
body: JSON.stringify({
|
|
193332
|
+
userPrompt: userPrompt,
|
|
193333
|
+
menus: menus,
|
|
193334
|
+
tables: tables.list,
|
|
193335
|
+
})
|
|
193336
|
+
});
|
|
193337
|
+
|
|
193338
|
+
return await response2.json();
|
|
193329
193339
|
};
|
|
193330
193340
|
}
|
|
193331
193341
|
|
|
@@ -193418,7 +193428,7 @@ class IdeAssi extends HTMLElement
|
|
|
193418
193428
|
try {
|
|
193419
193429
|
const r = await this.#ai.generateSource(question);
|
|
193420
193430
|
console.log(r);
|
|
193421
|
-
|
|
193431
|
+
elAiChat.add("ai", r);
|
|
193422
193432
|
} catch (error) {
|
|
193423
193433
|
console.error(error);
|
|
193424
193434
|
elAiChat.add("ai", error);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193311,7 +193311,7 @@ class IdeAi
|
|
|
193311
193311
|
console.log(menus);
|
|
193312
193312
|
console.log(tables);
|
|
193313
193313
|
|
|
193314
|
-
|
|
193314
|
+
await fetch(`${this.#API_URL}/ai/inferSourceMeta`, {
|
|
193315
193315
|
method: "POST",
|
|
193316
193316
|
headers: { "Content-Type": "application/json" },
|
|
193317
193317
|
body: JSON.stringify({
|
|
@@ -193321,7 +193321,17 @@ class IdeAi
|
|
|
193321
193321
|
})
|
|
193322
193322
|
});
|
|
193323
193323
|
|
|
193324
|
-
|
|
193324
|
+
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
193325
|
+
method: "POST",
|
|
193326
|
+
headers: { "Content-Type": "application/json" },
|
|
193327
|
+
body: JSON.stringify({
|
|
193328
|
+
userPrompt: userPrompt,
|
|
193329
|
+
menus: menus,
|
|
193330
|
+
tables: tables.list,
|
|
193331
|
+
})
|
|
193332
|
+
});
|
|
193333
|
+
|
|
193334
|
+
return await response2.json();
|
|
193325
193335
|
};
|
|
193326
193336
|
}
|
|
193327
193337
|
|
|
@@ -193414,7 +193424,7 @@ class IdeAssi extends HTMLElement
|
|
|
193414
193424
|
try {
|
|
193415
193425
|
const r = await this.#ai.generateSource(question);
|
|
193416
193426
|
console.log(r);
|
|
193417
|
-
|
|
193427
|
+
elAiChat.add("ai", r);
|
|
193418
193428
|
} catch (error) {
|
|
193419
193429
|
console.error(error);
|
|
193420
193430
|
elAiChat.add("ai", error);
|
package/dist/components/ideAi.js
CHANGED
|
@@ -58,7 +58,7 @@ export class IdeAi
|
|
|
58
58
|
console.log(menus);
|
|
59
59
|
console.log(tables);
|
|
60
60
|
|
|
61
|
-
const response = await fetch(`${this.#API_URL}/ai/
|
|
61
|
+
const response = await fetch(`${this.#API_URL}/ai/inferSourceMeta`, {
|
|
62
62
|
method: "POST",
|
|
63
63
|
headers: { "Content-Type": "application/json" },
|
|
64
64
|
body: JSON.stringify({
|
|
@@ -68,7 +68,17 @@ export class IdeAi
|
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: { "Content-Type": "application/json" },
|
|
74
|
+
body: JSON.stringify({
|
|
75
|
+
userPrompt: userPrompt,
|
|
76
|
+
menus: menus,
|
|
77
|
+
tables: tables.list,
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
return await response2.json();
|
|
72
82
|
};
|
|
73
83
|
}
|
|
74
84
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -58,7 +58,7 @@ export class IdeAi
|
|
|
58
58
|
console.log(menus);
|
|
59
59
|
console.log(tables);
|
|
60
60
|
|
|
61
|
-
const response = await fetch(`${this.#API_URL}/ai/
|
|
61
|
+
const response = await fetch(`${this.#API_URL}/ai/inferSourceMeta`, {
|
|
62
62
|
method: "POST",
|
|
63
63
|
headers: { "Content-Type": "application/json" },
|
|
64
64
|
body: JSON.stringify({
|
|
@@ -68,7 +68,17 @@ export class IdeAi
|
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: { "Content-Type": "application/json" },
|
|
74
|
+
body: JSON.stringify({
|
|
75
|
+
userPrompt: userPrompt,
|
|
76
|
+
menus: menus,
|
|
77
|
+
tables: tables.list,
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
return await response2.json();
|
|
72
82
|
};
|
|
73
83
|
}
|
|
74
84
|
|