ninegrid2 6.513.0 → 6.514.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.
@@ -155,8 +155,7 @@ filterString = "a" + filterString;
155
155
  // 안정적인 JSON 파싱을 위해 'JSON Mode' 또는 Function Calling 사용을 강력히 권장
156
156
  // LangChain의 SelfQueryRetriever를 사용하면 이 부분을 자동화할 수 있습니다.
157
157
  //try {
158
- const a = JSON.parse(filterString);
159
- return a;
158
+ return JSON.parse(filterString);
160
159
  //} catch (parseError) {
161
160
  // console.error("Failed to parse filter string as JSON:", parseError);
162
161
  // console.error("String that failed to parse:", filterString);
@@ -216,8 +215,10 @@ filterString = "a" + filterString;
216
215
  e.target.value = "";
217
216
  });
218
217
 
219
- this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
220
- this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
218
+ const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
219
+
220
+ elAiChat.add("me", question);
221
+ elAiChat.add("ing", question);
221
222
 
222
223
  try {
223
224
  this.#createModel();
@@ -232,8 +233,8 @@ filterString = "a" + filterString;
232
233
  await this.#q3();
233
234
  }
234
235
  } catch (error) {
235
- console.error("Error generating Qdrant filter:", error);
236
- return null;
236
+ //console.error("Error generating Qdrant filter:", error);
237
+ elAiChat.add("ai", error);
237
238
  }
238
239
 
239
240
 
@@ -28009,8 +28009,7 @@ filterString = "a" + filterString;
28009
28009
  // 안정적인 JSON 파싱을 위해 'JSON Mode' 또는 Function Calling 사용을 강력히 권장
28010
28010
  // LangChain의 SelfQueryRetriever를 사용하면 이 부분을 자동화할 수 있습니다.
28011
28011
  //try {
28012
- const a = JSON.parse(filterString);
28013
- return a;
28012
+ return JSON.parse(filterString);
28014
28013
  //} catch (parseError) {
28015
28014
  // console.error("Failed to parse filter string as JSON:", parseError);
28016
28015
  // console.error("String that failed to parse:", filterString);
@@ -28069,8 +28068,10 @@ filterString = "a" + filterString;
28069
28068
  e.target.value = "";
28070
28069
  });
28071
28070
 
28072
- this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
28073
- this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
28071
+ const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
28072
+
28073
+ elAiChat.add("me", question);
28074
+ elAiChat.add("ing", question);
28074
28075
 
28075
28076
  try {
28076
28077
  this.#createModel();
@@ -28085,8 +28086,8 @@ filterString = "a" + filterString;
28085
28086
  await this.#q3();
28086
28087
  }
28087
28088
  } catch (error) {
28088
- console.error("Error generating Qdrant filter:", error);
28089
- return null;
28089
+ //console.error("Error generating Qdrant filter:", error);
28090
+ elAiChat.add("ai", error);
28090
28091
  }
28091
28092
 
28092
28093
 
@@ -28007,8 +28007,7 @@ filterString = "a" + filterString;
28007
28007
  // 안정적인 JSON 파싱을 위해 'JSON Mode' 또는 Function Calling 사용을 강력히 권장
28008
28008
  // LangChain의 SelfQueryRetriever를 사용하면 이 부분을 자동화할 수 있습니다.
28009
28009
  //try {
28010
- const a = JSON.parse(filterString);
28011
- return a;
28010
+ return JSON.parse(filterString);
28012
28011
  //} catch (parseError) {
28013
28012
  // console.error("Failed to parse filter string as JSON:", parseError);
28014
28013
  // console.error("String that failed to parse:", filterString);
@@ -28067,8 +28066,10 @@ filterString = "a" + filterString;
28067
28066
  e.target.value = "";
28068
28067
  });
28069
28068
 
28070
- this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
28071
- this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
28069
+ const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
28070
+
28071
+ elAiChat.add("me", question);
28072
+ elAiChat.add("ing", question);
28072
28073
 
28073
28074
  try {
28074
28075
  this.#createModel();
@@ -28083,8 +28084,8 @@ filterString = "a" + filterString;
28083
28084
  await this.#q3();
28084
28085
  }
28085
28086
  } catch (error) {
28086
- console.error("Error generating Qdrant filter:", error);
28087
- return null;
28087
+ //console.error("Error generating Qdrant filter:", error);
28088
+ elAiChat.add("ai", error);
28088
28089
  }
28089
28090
 
28090
28091
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.513.0",
4
+ "version": "6.514.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -155,8 +155,7 @@ filterString = "a" + filterString;
155
155
  // 안정적인 JSON 파싱을 위해 'JSON Mode' 또는 Function Calling 사용을 강력히 권장
156
156
  // LangChain의 SelfQueryRetriever를 사용하면 이 부분을 자동화할 수 있습니다.
157
157
  //try {
158
- const a = JSON.parse(filterString);
159
- return a;
158
+ return JSON.parse(filterString);
160
159
  //} catch (parseError) {
161
160
  // console.error("Failed to parse filter string as JSON:", parseError);
162
161
  // console.error("String that failed to parse:", filterString);
@@ -216,8 +215,10 @@ filterString = "a" + filterString;
216
215
  e.target.value = "";
217
216
  });
218
217
 
219
- this.shadowRoot.querySelector("nx-ai-chat").add("me", question);
220
- this.shadowRoot.querySelector("nx-ai-chat").add("ing", question);
218
+ const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
219
+
220
+ elAiChat.add("me", question);
221
+ elAiChat.add("ing", question);
221
222
 
222
223
  try {
223
224
  this.#createModel();
@@ -232,8 +233,8 @@ filterString = "a" + filterString;
232
233
  await this.#q3();
233
234
  }
234
235
  } catch (error) {
235
- console.error("Error generating Qdrant filter:", error);
236
- return null;
236
+ //console.error("Error generating Qdrant filter:", error);
237
+ elAiChat.add("ai", error);
237
238
  }
238
239
 
239
240