deep-chat-dev 9.0.73 → 9.0.75

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/deepChat.js CHANGED
@@ -8052,7 +8052,7 @@ var mn = {
8052
8052
  function A(e) {
8053
8053
  var _this32;
8054
8054
  _classCallCheck(this, A);
8055
- _this32 = _super35.call(this, e), _this32._isModelLoaded = !1, _this32._isModelLoading = !1, _this32._loadOnFirstMessage = !1, _this32.permittedErrorPrefixes = [A.MULTIPLE_MODELS_ERROR, A.WEB_LLM_NOT_FOUND_ERROR, A.GENERIC_ERROR], _this32.webModel = {}, _typeof(e._webModel) == "object" && (_this32.webModel = e._webModel), e.shadowRoot && _this32.findModelInWindow(e.shadowRoot), _this32.canSendMessage = _this32.canSubmit.bind(_assertThisInitialized(_this32));
8055
+ _this32 = _super35.call(this, e), _this32._isModelLoaded = !1, _this32._isModelLoading = !1, _this32._loadOnFirstMessage = !1, _this32.permittedErrorPrefixes = [A.MULTIPLE_MODELS_ERROR, A.WEB_LLM_NOT_FOUND_ERROR, A.GENERIC_ERROR], _this32.webModel = {}, _typeof(e._webModel) == "object" && (_this32.webModel = e._webModel), console.log(e.shadowRoot), e.shadowRoot && _this32.findModelInWindow(e.shadowRoot), _this32.canSendMessage = _this32.canSubmit.bind(_assertThisInitialized(_this32));
8056
8056
  return _this32;
8057
8057
  }
8058
8058
  _createClass(A, [{
@@ -8061,10 +8061,10 @@ var mn = {
8061
8061
  var _this33 = this;
8062
8062
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
8063
8063
  var i;
8064
- window.webLLM ? setTimeout(function () {
8064
+ console.log(window.webLLM), window.webLLM ? (console.log("call"), setTimeout(function () {
8065
8065
  var s = _this33.addInitialMessage(e);
8066
8066
  _this33.configureInit(s);
8067
- }) : t > 5 ? ((i = this.addMessage) == null || i.call(this, {
8067
+ })) : t > 5 ? ((i = this.addMessage) == null || i.call(this, {
8068
8068
  error: A.WEB_LLM_NOT_FOUND_ERROR,
8069
8069
  sendUpdate: !1
8070
8070
  }), console.error("The WebLLM module is either not in the project or not been attached to the window object. Please see the following guide:"), console.error("Hello World")) : setTimeout(function () {
@@ -8076,7 +8076,7 @@ var mn = {
8076
8076
  value: function addInitialMessage(e) {
8077
8077
  var a, l;
8078
8078
  var t = this.webModel.initialMessage;
8079
- if (!this.webModel || (t == null ? void 0 : t.displayed) === !1) return !1;
8079
+ if (console.log(this.webModel), console.log(t == null ? void 0 : t.displayed), !this.webModel || (t == null ? void 0 : t.displayed) === !1) return !1;
8080
8080
  var i = (t == null ? void 0 : t.downloadClass) || A.DOWNLOAD_BUTTON_CLASS,
8081
8081
  s = "\n Download a web model that will run entirely on your browser.\n <br/> <button style=\"margin-top: 10px; margin-bottom: 5px; margin-left: 1px\"\n class=\"".concat(i, " deep-chat-button\">Download</button>"),
8082
8082
  r = (t == null ? void 0 : t.html) || "<div>".concat(s, "</div>");
@@ -1 +1 @@
1
- {"version":3,"file":"webModel.d.ts","sourceRoot":"","sources":["../../../src/webModel/webModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAGzD,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAErC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,OAAO,MAAM,CAAC;KACvB;CACF;AAOD,qBAAa,QAAS,SAAQ,aAAa;IACzC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAuB;IAC3C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAEqD;IAC1F,O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+B;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAEqD;IAC1F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAoC;IACjF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,CAA6B;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAgC;IACrE,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,mBAAmB,CAAS;IACpC,sBAAsB,WAA8F;IACpH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsB;gBAEnC,QAAQ,EAAE,QAAQ;IAS9B,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,iBAAiB;YAiBX,aAAa;YAeb,IAAI;IAKlB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,SAAS;YAgBH,SAAS;YAmBT,YAAY;YAaZ,aAAa;YAMb,UAAU;IAaxB,OAAO,CAAC,SAAS;IAMF,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE;YAahE,UAAU;IAUf,UAAU;CAGpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deep-chat-dev",
3
- "version": "9.0.73",
3
+ "version": "9.0.75",
4
4
  "description": "Customizable chat component for AI APIs",
5
5
  "main": "./dist/deepChat.js",
6
6
  "module": "./dist/deepChat.js",