ninegrid2 6.503.0 → 6.504.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/ai/aiContainer.js +21 -13
- package/dist/bundle.cjs.js +21 -13
- package/dist/bundle.esm.js +21 -13
- package/package.json +1 -1
- package/src/ai/aiContainer.js +21 -13
package/dist/ai/aiContainer.js
CHANGED
|
@@ -104,7 +104,7 @@ class aiContainer extends HTMLElement
|
|
|
104
104
|
Qdrant 필터 JSON:
|
|
105
105
|
`;
|
|
106
106
|
|
|
107
|
-
try {
|
|
107
|
+
//try {
|
|
108
108
|
const response = await chatModel.invoke([
|
|
109
109
|
new SystemMessage("You are a helpful assistant."),
|
|
110
110
|
new HumanMessage(prompt),
|
|
@@ -133,10 +133,11 @@ filterString = "a" + filterString;
|
|
|
133
133
|
// return null; // 파싱 실패 시 null 반환 또는 적절한 에러 처리
|
|
134
134
|
//}
|
|
135
135
|
|
|
136
|
-
} catch (error) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
//} catch (error) {
|
|
137
|
+
|
|
138
|
+
// console.error("Error generating Qdrant filter with Gemini:", error);
|
|
139
|
+
// return null;
|
|
140
|
+
//}
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
#q1 = () => {
|
|
@@ -188,15 +189,22 @@ this.#generateQdrantFilter();
|
|
|
188
189
|
this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
|
|
189
190
|
this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
this
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
this
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
192
|
+
try {
|
|
193
|
+
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
194
|
+
this.#q1();
|
|
195
|
+
}
|
|
196
|
+
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
197
|
+
this.#q2();
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.#q3();
|
|
201
|
+
}
|
|
202
|
+
} catch (error) {
|
|
203
|
+
|
|
204
|
+
console.error("Error generating Qdrant filter with Gemini:", error);
|
|
205
|
+
return null;
|
|
199
206
|
}
|
|
207
|
+
|
|
200
208
|
|
|
201
209
|
this.#ing = false;
|
|
202
210
|
}
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -27958,7 +27958,7 @@ class aiContainer extends HTMLElement
|
|
|
27958
27958
|
Qdrant 필터 JSON:
|
|
27959
27959
|
`;
|
|
27960
27960
|
|
|
27961
|
-
try {
|
|
27961
|
+
//try {
|
|
27962
27962
|
const response = await chatModel.invoke([
|
|
27963
27963
|
new SystemMessage("You are a helpful assistant."),
|
|
27964
27964
|
new HumanMessage(prompt),
|
|
@@ -27987,10 +27987,11 @@ filterString = "a" + filterString;
|
|
|
27987
27987
|
// return null; // 파싱 실패 시 null 반환 또는 적절한 에러 처리
|
|
27988
27988
|
//}
|
|
27989
27989
|
|
|
27990
|
-
} catch (error) {
|
|
27991
|
-
|
|
27992
|
-
|
|
27993
|
-
|
|
27990
|
+
//} catch (error) {
|
|
27991
|
+
|
|
27992
|
+
// console.error("Error generating Qdrant filter with Gemini:", error);
|
|
27993
|
+
// return null;
|
|
27994
|
+
//}
|
|
27994
27995
|
}
|
|
27995
27996
|
|
|
27996
27997
|
#q1 = () => {
|
|
@@ -28041,15 +28042,22 @@ this.#generateQdrantFilter();
|
|
|
28041
28042
|
this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
|
|
28042
28043
|
this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
|
|
28043
28044
|
|
|
28044
|
-
|
|
28045
|
-
this
|
|
28046
|
-
|
|
28047
|
-
|
|
28048
|
-
this
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28045
|
+
try {
|
|
28046
|
+
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
28047
|
+
this.#q1();
|
|
28048
|
+
}
|
|
28049
|
+
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
28050
|
+
this.#q2();
|
|
28051
|
+
}
|
|
28052
|
+
else {
|
|
28053
|
+
this.#q3();
|
|
28054
|
+
}
|
|
28055
|
+
} catch (error) {
|
|
28056
|
+
|
|
28057
|
+
console.error("Error generating Qdrant filter with Gemini:", error);
|
|
28058
|
+
return null;
|
|
28052
28059
|
}
|
|
28060
|
+
|
|
28053
28061
|
|
|
28054
28062
|
this.#ing = false;
|
|
28055
28063
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -27956,7 +27956,7 @@ class aiContainer extends HTMLElement
|
|
|
27956
27956
|
Qdrant 필터 JSON:
|
|
27957
27957
|
`;
|
|
27958
27958
|
|
|
27959
|
-
try {
|
|
27959
|
+
//try {
|
|
27960
27960
|
const response = await chatModel.invoke([
|
|
27961
27961
|
new SystemMessage("You are a helpful assistant."),
|
|
27962
27962
|
new HumanMessage(prompt),
|
|
@@ -27985,10 +27985,11 @@ filterString = "a" + filterString;
|
|
|
27985
27985
|
// return null; // 파싱 실패 시 null 반환 또는 적절한 에러 처리
|
|
27986
27986
|
//}
|
|
27987
27987
|
|
|
27988
|
-
} catch (error) {
|
|
27989
|
-
|
|
27990
|
-
|
|
27991
|
-
|
|
27988
|
+
//} catch (error) {
|
|
27989
|
+
|
|
27990
|
+
// console.error("Error generating Qdrant filter with Gemini:", error);
|
|
27991
|
+
// return null;
|
|
27992
|
+
//}
|
|
27992
27993
|
}
|
|
27993
27994
|
|
|
27994
27995
|
#q1 = () => {
|
|
@@ -28039,15 +28040,22 @@ this.#generateQdrantFilter();
|
|
|
28039
28040
|
this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
|
|
28040
28041
|
this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
|
|
28041
28042
|
|
|
28042
|
-
|
|
28043
|
-
this
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
this
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28043
|
+
try {
|
|
28044
|
+
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
28045
|
+
this.#q1();
|
|
28046
|
+
}
|
|
28047
|
+
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
28048
|
+
this.#q2();
|
|
28049
|
+
}
|
|
28050
|
+
else {
|
|
28051
|
+
this.#q3();
|
|
28052
|
+
}
|
|
28053
|
+
} catch (error) {
|
|
28054
|
+
|
|
28055
|
+
console.error("Error generating Qdrant filter with Gemini:", error);
|
|
28056
|
+
return null;
|
|
28050
28057
|
}
|
|
28058
|
+
|
|
28051
28059
|
|
|
28052
28060
|
this.#ing = false;
|
|
28053
28061
|
}
|
package/package.json
CHANGED
package/src/ai/aiContainer.js
CHANGED
|
@@ -104,7 +104,7 @@ class aiContainer extends HTMLElement
|
|
|
104
104
|
Qdrant 필터 JSON:
|
|
105
105
|
`;
|
|
106
106
|
|
|
107
|
-
try {
|
|
107
|
+
//try {
|
|
108
108
|
const response = await chatModel.invoke([
|
|
109
109
|
new SystemMessage("You are a helpful assistant."),
|
|
110
110
|
new HumanMessage(prompt),
|
|
@@ -133,10 +133,11 @@ filterString = "a" + filterString;
|
|
|
133
133
|
// return null; // 파싱 실패 시 null 반환 또는 적절한 에러 처리
|
|
134
134
|
//}
|
|
135
135
|
|
|
136
|
-
} catch (error) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
//} catch (error) {
|
|
137
|
+
|
|
138
|
+
// console.error("Error generating Qdrant filter with Gemini:", error);
|
|
139
|
+
// return null;
|
|
140
|
+
//}
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
#q1 = () => {
|
|
@@ -188,15 +189,22 @@ this.#generateQdrantFilter();
|
|
|
188
189
|
this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
|
|
189
190
|
this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
this
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
this
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
192
|
+
try {
|
|
193
|
+
if (this.shadowRoot.querySelector(".menu-filter").classList.contains("active")) {
|
|
194
|
+
this.#q1();
|
|
195
|
+
}
|
|
196
|
+
else if (this.shadowRoot.querySelector(".menu-general").classList.contains("active")) {
|
|
197
|
+
this.#q2();
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.#q3();
|
|
201
|
+
}
|
|
202
|
+
} catch (error) {
|
|
203
|
+
|
|
204
|
+
console.error("Error generating Qdrant filter with Gemini:", error);
|
|
205
|
+
return null;
|
|
199
206
|
}
|
|
207
|
+
|
|
200
208
|
|
|
201
209
|
this.#ing = false;
|
|
202
210
|
}
|