deep-chat-dev 9.0.99 → 9.0.101
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/custom-elements.json +4170 -4136
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +4 -4
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +83 -70
- package/dist/types/webModel/webModel.d.ts +1 -1
- package/dist/types/webModel/webModel.d.ts.map +1 -1
- package/dist/utils/webComponent/internalHTML.d.ts.map +1 -1
- package/dist/webModel/webModel.d.ts +1 -0
- package/dist/webModel/webModel.d.ts.map +1 -1
- package/dist/webModel/webModelIntroMessage.d.ts +2 -2
- package/dist/webModel/webModelIntroMessage.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.d.ts
CHANGED
@@ -63,10 +63,10 @@ export declare class DeepChat extends InternalHTML {
|
|
63
63
|
clearMessages: (isReset?: boolean) => void;
|
64
64
|
scrollToBottom: () => void;
|
65
65
|
disableSubmitButton: DisableSubmitButton;
|
66
|
-
onNewMessage
|
67
|
-
onClearMessages
|
68
|
-
onComponentRender
|
69
|
-
onError
|
66
|
+
onNewMessage?: OnNewMessage;
|
67
|
+
onClearMessages?: () => void;
|
68
|
+
onComponentRender?: () => void;
|
69
|
+
onError?: OnError;
|
70
70
|
demo?: Demo;
|
71
71
|
_hasBeenRendered: boolean;
|
72
72
|
_auxiliaryStyleApplied: boolean;
|
package/dist/deepChat.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deepChat.d.ts","sourceRoot":"","sources":["../../src/deepChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,kBAAkB,EAAE,4BAA4B,EAAC,MAAM,4BAA4B,CAAC;AACtH,OAAO,EAAC,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAGxG,OAAO,EAAC,mBAAmB,E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C;IAG5B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAG7B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAG/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,gBAAgB,UAAS;IAEzB,sBAAsB,UAAS;IAE/B,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,aAAa,CAAC,EAAE,WAAW,CAAC;IAE5B,kBAAkB,CAAC,EAAE,iBAAiB,CAAC;IAIvC,oBAAoB,CAAC,EAAE,mBAAmB,CAAC;;IAe3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAE1C,OAAO,CAAC,gBAAgB;IAMf,QAAQ;CA0BlB;AAKD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/dist/deepChat.js
CHANGED
@@ -69,11 +69,11 @@ var Dt = /*#__PURE__*/function () {
|
|
69
69
|
}]);
|
70
70
|
return Dt;
|
71
71
|
}();
|
72
|
-
var
|
73
|
-
function
|
74
|
-
_classCallCheck(this,
|
72
|
+
var T = /*#__PURE__*/function () {
|
73
|
+
function T() {
|
74
|
+
_classCallCheck(this, T);
|
75
75
|
}
|
76
|
-
_createClass(
|
76
|
+
_createClass(T, null, [{
|
77
77
|
key: "unsetStyle",
|
78
78
|
value: function unsetStyle(e, t) {
|
79
79
|
var i = Object.keys(t).reduce(function (n, r) {
|
@@ -84,12 +84,12 @@ var M = /*#__PURE__*/function () {
|
|
84
84
|
}, {
|
85
85
|
key: "unsetActivityCSSMouseStates",
|
86
86
|
value: function unsetActivityCSSMouseStates(e, t) {
|
87
|
-
t.click &&
|
87
|
+
t.click && T.unsetStyle(e, t.click), t.hover && T.unsetStyle(e, t.hover);
|
88
88
|
}
|
89
89
|
}, {
|
90
90
|
key: "unsetAllCSSMouseStates",
|
91
91
|
value: function unsetAllCSSMouseStates(e, t) {
|
92
|
-
|
92
|
+
T.unsetActivityCSSMouseStates(e, t), t["default"] && T.unsetStyle(e, t["default"]);
|
93
93
|
}
|
94
94
|
}, {
|
95
95
|
key: "processStateful",
|
@@ -133,7 +133,7 @@ var M = /*#__PURE__*/function () {
|
|
133
133
|
}
|
134
134
|
}
|
135
135
|
}]);
|
136
|
-
return
|
136
|
+
return T;
|
137
137
|
}();
|
138
138
|
var jn = /*#__PURE__*/function () {
|
139
139
|
function Ot() {
|
@@ -163,7 +163,7 @@ var jn = /*#__PURE__*/function () {
|
|
163
163
|
}, {
|
164
164
|
key: "applyDefaultStyleToComponent",
|
165
165
|
value: function applyDefaultStyleToComponent(e, t) {
|
166
|
-
t &&
|
166
|
+
t && T.applyToStyleIfNotDefined(e, t), T.applyToStyleIfNotDefined(e, Ot.DEFAULT_COMPONENT_STYLE);
|
167
167
|
}
|
168
168
|
}]);
|
169
169
|
return Ot;
|
@@ -262,7 +262,7 @@ var Fn = /*#__PURE__*/function () {
|
|
262
262
|
key: "removeTextIfPlaceholder",
|
263
263
|
value: function removeTextIfPlaceholder() {
|
264
264
|
var e, t, i, n;
|
265
|
-
this.inputElementRef.classList.contains("text-input-placeholder") && !this.inputElementRef.classList.contains("text-input-disabled") && ((e = this._config.placeholder) != null && e.style && (
|
265
|
+
this.inputElementRef.classList.contains("text-input-placeholder") && !this.inputElementRef.classList.contains("text-input-disabled") && ((e = this._config.placeholder) != null && e.style && (T.unsetStyle(this.inputElementRef, (t = this._config.placeholder) == null ? void 0 : t.style), Object.assign(this.inputElementRef.style, (n = (i = this._config) == null ? void 0 : i.styles) == null ? void 0 : n.text)), qe.clear(this.inputElementRef), this.inputElementRef.classList.remove("text-input-placeholder"));
|
266
266
|
}
|
267
267
|
}, {
|
268
268
|
key: "addEventListeners",
|
@@ -281,7 +281,7 @@ var Fn = /*#__PURE__*/function () {
|
|
281
281
|
}, {
|
282
282
|
key: "onBlur",
|
283
283
|
value: function onBlur(e, t) {
|
284
|
-
|
284
|
+
T.unsetStyle(this.elementRef, e), t && Object.assign(this.elementRef.style, t);
|
285
285
|
}
|
286
286
|
}, {
|
287
287
|
key: "onKeydown",
|
@@ -591,7 +591,7 @@ var Te = /*#__PURE__*/function () {
|
|
591
591
|
_createClass(Te, null, [{
|
592
592
|
key: "mouseUp",
|
593
593
|
value: function mouseUp(e, t) {
|
594
|
-
|
594
|
+
T.unsetAllCSSMouseStates(e, t), Object.assign(e.style, t["default"]), Object.assign(e.style, t.hover);
|
595
595
|
}
|
596
596
|
}, {
|
597
597
|
key: "mouseDown",
|
@@ -601,7 +601,7 @@ var Te = /*#__PURE__*/function () {
|
|
601
601
|
}, {
|
602
602
|
key: "mouseLeave",
|
603
603
|
value: function mouseLeave(e, t) {
|
604
|
-
|
604
|
+
T.unsetAllCSSMouseStates(e, t), Object.assign(e.style, t["default"]);
|
605
605
|
}
|
606
606
|
}, {
|
607
607
|
key: "mouseEnter",
|
@@ -688,10 +688,10 @@ var be = /*#__PURE__*/function () {
|
|
688
688
|
r = Ri[i].styles;
|
689
689
|
if (r) {
|
690
690
|
var a = JSON.parse(JSON.stringify(r));
|
691
|
-
a["default"] &&
|
691
|
+
a["default"] && T.overwriteDefaultWithAlreadyApplied(a, t), n.unshift(a);
|
692
692
|
}
|
693
|
-
var o =
|
694
|
-
return
|
693
|
+
var o = T.mergeStatefulStyles(n);
|
694
|
+
return T.processStateful(o, {}, {});
|
695
695
|
}
|
696
696
|
}, {
|
697
697
|
key: "applyDeepChatUtilities",
|
@@ -718,7 +718,7 @@ var se = /*#__PURE__*/function () {
|
|
718
718
|
_createClass(se, null, [{
|
719
719
|
key: "applyStylesToElement",
|
720
720
|
value: function applyStylesToElement(e, t) {
|
721
|
-
var i =
|
721
|
+
var i = T.processStateful(t, {}, {});
|
722
722
|
Te.add(e, i), Object.assign(e.style, i["default"]);
|
723
723
|
}
|
724
724
|
}, {
|
@@ -2777,28 +2777,32 @@ var jt = /*#__PURE__*/function () {
|
|
2777
2777
|
_createClass(jt, null, [{
|
2778
2778
|
key: "onNewMessage",
|
2779
2779
|
value: function onNewMessage(e, t, i) {
|
2780
|
+
var r;
|
2780
2781
|
var n = JSON.parse(JSON.stringify({
|
2781
2782
|
message: t,
|
2782
2783
|
isInitial: i
|
2783
2784
|
}));
|
2784
|
-
ne.reAddFileRefToObject(t, n), e.onNewMessage(n), e.dispatchEvent(new CustomEvent("new-message", {
|
2785
|
+
ne.reAddFileRefToObject(t, n), (r = e.onNewMessage) == null || r.call(e, n), e.dispatchEvent(new CustomEvent("new-message", {
|
2785
2786
|
detail: n
|
2786
2787
|
}));
|
2787
2788
|
}
|
2788
2789
|
}, {
|
2789
2790
|
key: "onClearMessages",
|
2790
2791
|
value: function onClearMessages(e) {
|
2791
|
-
|
2792
|
+
var t;
|
2793
|
+
(t = e.onClearMessages) == null || t.call(e), e.dispatchEvent(new CustomEvent("clear-messages"));
|
2792
2794
|
}
|
2793
2795
|
}, {
|
2794
2796
|
key: "onRender",
|
2795
2797
|
value: function onRender(e) {
|
2796
|
-
|
2798
|
+
var t;
|
2799
|
+
(t = e.onComponentRender) == null || t.call(e), e.dispatchEvent(new CustomEvent("render"));
|
2797
2800
|
}
|
2798
2801
|
}, {
|
2799
2802
|
key: "onError",
|
2800
2803
|
value: function onError(e, t) {
|
2801
|
-
|
2804
|
+
var i;
|
2805
|
+
(i = e.onError) == null || i.call(e, t), e.dispatchEvent(new CustomEvent("error", {
|
2802
2806
|
detail: t
|
2803
2807
|
}));
|
2804
2808
|
}
|
@@ -4793,7 +4797,7 @@ var Ki = /*#__PURE__*/function (_HTMLElement) {
|
|
4793
4797
|
return i;
|
4794
4798
|
},
|
4795
4799
|
set: function set(o) {
|
4796
|
-
i = o, t ? this[e] = o : Bt.attemptRender(this);
|
4800
|
+
i = o, t ? this[e] = o : (console.log(e), Bt.attemptRender(this));
|
4797
4801
|
}
|
4798
4802
|
});
|
4799
4803
|
}
|
@@ -8081,24 +8085,25 @@ var Et = /*#__PURE__*/function () {
|
|
8081
8085
|
return pe.enableButtons(e, t, i + 1);
|
8082
8086
|
}, 250);
|
8083
8087
|
}
|
8088
|
+
// prettier-ignore
|
8084
8089
|
}, {
|
8085
8090
|
key: "setUpInitial",
|
8086
|
-
value: function setUpInitial(e, t, i) {
|
8087
|
-
var
|
8088
|
-
|
8089
|
-
|
8091
|
+
value: function setUpInitial(e, t, i, n) {
|
8092
|
+
var r = (t == null ? void 0 : t.downloadClass) || pe.DOWNLOAD_BUTTON_CLASS,
|
8093
|
+
o = (t == null ? void 0 : t.uploadClass) || pe.UPLOAD_BUTTON_CLASS,
|
8094
|
+
a = (t == null ? void 0 : t.fileInputClass) || pe.FILE_INPUT_CLASS;
|
8090
8095
|
return setTimeout(function () {
|
8091
|
-
var
|
8092
|
-
|
8093
|
-
|
8096
|
+
var l = i == null ? void 0 : i.getElementsByClassName(r)[0],
|
8097
|
+
c = i == null ? void 0 : i.getElementsByClassName(a)[0],
|
8098
|
+
d = i == null ? void 0 : i.getElementsByClassName(o)[0];
|
8094
8099
|
l && (l.onclick = function () {
|
8095
8100
|
return e();
|
8096
|
-
}),
|
8097
|
-
|
8098
|
-
}),
|
8099
|
-
return
|
8100
|
-
}), (l ||
|
8101
|
-
}), (t == null ? void 0 : t.initialHtml) || "<div>\n
|
8101
|
+
}), c && (c.onchange = function () {
|
8102
|
+
c.files && c.files.length > 0 && e(c.files);
|
8103
|
+
}), d && (d.onclick = function () {
|
8104
|
+
return c.click();
|
8105
|
+
}), (l || d) && pe.enableButtons(l, d);
|
8106
|
+
}), (t == null ? void 0 : t.initialHtml) || "<div>\n Download or upload a web model that will run entirely on your browser: <br/> \n <button disabled class=\"".concat(r, " deep-chat-button deep-chat-web-model-button\">Download</button>\n ").concat(n ? "" : "<input type=\"file\" class=\"".concat(a, "\" hidden multiple />\n <button disabled class=\"").concat(o, " deep-chat-button deep-chat-web-model-button\">Upload</button>"), "\n </div>");
|
8102
8107
|
}
|
8103
8108
|
}, {
|
8104
8109
|
key: "exportFile",
|
@@ -8118,16 +8123,17 @@ var Et = /*#__PURE__*/function () {
|
|
8118
8123
|
_loop2(n);
|
8119
8124
|
}
|
8120
8125
|
}
|
8126
|
+
// prettier-ignore
|
8121
8127
|
}, {
|
8122
8128
|
key: "setUpAfterLoad",
|
8123
|
-
value: function setUpAfterLoad(e, t, i) {
|
8124
|
-
var
|
8129
|
+
value: function setUpAfterLoad(e, t, i, n) {
|
8130
|
+
var r = (t == null ? void 0 : t.exportFilesClass) || pe.EXPORT_BUTTON_CLASS;
|
8125
8131
|
return setTimeout(function () {
|
8126
|
-
var
|
8127
|
-
|
8132
|
+
var o = i == null ? void 0 : i.getElementsByClassName(r)[0];
|
8133
|
+
o && (o.onclick = function () {
|
8128
8134
|
return pe.exportFile(e);
|
8129
8135
|
});
|
8130
|
-
}), (t == null ? void 0 : t.afterLoadHtml) || "<div>\n Model loaded successfully and has been cached for future requests. <br
|
8136
|
+
}), (t == null ? void 0 : t.afterLoadHtml) || "<div>\n Model loaded successfully and has been cached for future requests.\n ".concat(n ? "" : "<br/> <button style=\"margin-top: 5px\" class=\"".concat(r, " deep-chat-button\">Export</button>"), "\n </div>");
|
8131
8137
|
}
|
8132
8138
|
}]);
|
8133
8139
|
return pe;
|
@@ -8230,17 +8236,17 @@ var yn = {
|
|
8230
8236
|
use_web_worker: !0
|
8231
8237
|
},
|
8232
8238
|
et = /*#__PURE__*/function (_Le2) {
|
8233
|
-
_inherits(
|
8234
|
-
var _super35 = _createSuper(
|
8235
|
-
function
|
8239
|
+
_inherits(M, _Le2);
|
8240
|
+
var _super35 = _createSuper(M);
|
8241
|
+
function M(e) {
|
8236
8242
|
var _this32;
|
8237
|
-
_classCallCheck(this,
|
8243
|
+
_classCallCheck(this, M);
|
8238
8244
|
var t, i;
|
8239
|
-
_this32 = _super35.call(this, e), _this32._isModelLoaded = !1, _this32._isModelLoading = !1, _this32._loadOnFirstMessage = !1, _this32._webModel = {}, _this32.permittedErrorPrefixes = [
|
8245
|
+
_this32 = _super35.call(this, e), _this32._isModelLoaded = !1, _this32._isModelLoading = !1, _this32._loadOnFirstMessage = !1, _this32._webModel = {}, _this32.permittedErrorPrefixes = [M.MULTIPLE_MODELS_ERROR, M.WEB_LLM_NOT_FOUND_ERROR, M.GENERIC_ERROR], _this32._conversationHistory = [], _typeof(e.webModel) == "object" && (_this32._webModel = e.webModel), (t = _this32._webModel.load) != null && t.clearCache && M.clearAllCache(), _this32.findModelInWindow(e), _this32.canSendMessage = _this32.canSubmit.bind(_assertThisInitialized(_this32)), _this32._chatEl = (i = e.shadowRoot) == null ? void 0 : i.children[0], e.initialMessages && M.setUpHistory(_this32._conversationHistory, e.initialMessages);
|
8240
8246
|
return _this32;
|
8241
8247
|
}
|
8242
8248
|
// need ref of messages object as web model exhibits unique behaviour to manipulate chat
|
8243
|
-
_createClass(
|
8249
|
+
_createClass(M, [{
|
8244
8250
|
key: "setUpMessages",
|
8245
8251
|
value: function setUpMessages(e) {
|
8246
8252
|
var _this33 = this;
|
@@ -8254,7 +8260,7 @@ var yn = {
|
|
8254
8260
|
var _this34 = this;
|
8255
8261
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
8256
8262
|
var i;
|
8257
|
-
window.webLLM ? this.configureInit(this.shouldAddInitialMessage(e.introMessage)) : t >
|
8263
|
+
window.webLLM ? this.configureInit(this.shouldAddInitialMessage(e.introMessage)) : t > M.MODULE_SEARCH_LIMIT_S ? ((i = this._messages) == null || i.addNewErrorMessage("service", M.WEB_LLM_NOT_FOUND_ERROR), 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 () {
|
8258
8264
|
return _this34.findModelInWindow(e, t + 1);
|
8259
8265
|
}, 1e3);
|
8260
8266
|
}
|
@@ -8274,11 +8280,12 @@ var yn = {
|
|
8274
8280
|
(i = _this35._messages) != null && i.elementRef && Y.scrollToTop((n = _this35._messages) == null ? void 0 : n.elementRef);
|
8275
8281
|
}, e);
|
8276
8282
|
}
|
8283
|
+
// prettier-ignore
|
8277
8284
|
}, {
|
8278
8285
|
key: "getIntroMessage",
|
8279
8286
|
value: function getIntroMessage(e) {
|
8280
8287
|
if (!this.shouldAddInitialMessage(e) || !this._chatEl) return;
|
8281
|
-
var t = vn.setUpInitial(this.init.bind(this), this._webModel.introMessage, this._chatEl);
|
8288
|
+
var t = vn.setUpInitial(this.init.bind(this), this._webModel.introMessage, this._chatEl, !!this._webModel.worker);
|
8282
8289
|
return this.scrollToTop(1), {
|
8283
8290
|
role: v.AI_ROLE,
|
8284
8291
|
html: t,
|
@@ -8355,8 +8362,8 @@ var yn = {
|
|
8355
8362
|
key: "attemptToCreateChat",
|
8356
8363
|
value: function attemptToCreateChat() {
|
8357
8364
|
var t;
|
8358
|
-
if (
|
8359
|
-
(t = this._messages) == null || t.addNewErrorMessage("service",
|
8365
|
+
if (M.chat) {
|
8366
|
+
(t = this._messages) == null || t.addNewErrorMessage("service", M.MULTIPLE_MODELS_ERROR), console.error(M.MULTIPLE_MODELS_ERROR);
|
8360
8367
|
return;
|
8361
8368
|
}
|
8362
8369
|
if (this._isModelLoaded || this._isModelLoading) return;
|
@@ -8367,7 +8374,7 @@ var yn = {
|
|
8367
8374
|
key: "getConfig",
|
8368
8375
|
value: function getConfig() {
|
8369
8376
|
var i, n, r;
|
8370
|
-
var e =
|
8377
|
+
var e = M.DEFAULT_MODEL;
|
8371
8378
|
this._webModel.model && (e = this._webModel.model);
|
8372
8379
|
var t = JSON.parse(JSON.stringify(yn));
|
8373
8380
|
if ((i = this._webModel.urls) != null && i.model) {
|
@@ -8385,6 +8392,7 @@ var yn = {
|
|
8385
8392
|
appConfig: t
|
8386
8393
|
};
|
8387
8394
|
}
|
8395
|
+
// prettier-ignore
|
8388
8396
|
}, {
|
8389
8397
|
key: "loadModel",
|
8390
8398
|
value: function () {
|
@@ -8394,7 +8402,7 @@ var yn = {
|
|
8394
8402
|
return _regeneratorRuntime().wrap(function _callee79$(_context79) {
|
8395
8403
|
while (1) switch (_context79.prev = _context79.next) {
|
8396
8404
|
case 0:
|
8397
|
-
this.scrollToTop(),
|
8405
|
+
this.scrollToTop(), M.chat = e, this._isModelLoading = !0;
|
8398
8406
|
i = ((o = this._webModel.introMessage) == null ? void 0 : o.displayed) === !1;
|
8399
8407
|
n = function n(u) {
|
8400
8408
|
var h;
|
@@ -8407,7 +8415,7 @@ var yn = {
|
|
8407
8415
|
return Y.scrollToBottom((p = _this36._messages) == null ? void 0 : p.elementRef);
|
8408
8416
|
}), i = !1);
|
8409
8417
|
};
|
8410
|
-
|
8418
|
+
M.chat.setInitProgressCallback(n);
|
8411
8419
|
_context79.prev = 4;
|
8412
8420
|
_this$getConfig = this.getConfig(), u = _this$getConfig.model, h = _this$getConfig.appConfig, p = {
|
8413
8421
|
conv_config: {
|
@@ -8416,7 +8424,7 @@ var yn = {
|
|
8416
8424
|
};
|
8417
8425
|
this._conversationHistory.length > 0 && (p.conversation_history = this._conversationHistory);
|
8418
8426
|
_context79.next = 9;
|
8419
|
-
return
|
8427
|
+
return M.chat.reload(u, p, h, t);
|
8420
8428
|
case 9:
|
8421
8429
|
r = _context79.sent;
|
8422
8430
|
_context79.next = 15;
|
@@ -8427,7 +8435,7 @@ var yn = {
|
|
8427
8435
|
return _context79.abrupt("return", this.unloadChat(_context79.t0));
|
8428
8436
|
case 15:
|
8429
8437
|
if ((a = this._webModel.introMessage) != null && a.removeAfterLoad) this._webModel.introMessage.displayed === !1 ? (c = this._messages) == null || c.removeLastMessage() : (d = this._removeIntro) == null || d.call(this);else {
|
8430
|
-
_u = vn.setUpAfterLoad(r, this._webModel.introMessage, this._chatEl);
|
8438
|
+
_u = vn.setUpAfterLoad(r, this._webModel.introMessage, this._chatEl, !!this._webModel.worker);
|
8431
8439
|
(l = this._messages) == null || l.addNewMessage({
|
8432
8440
|
html: _u,
|
8433
8441
|
overwrite: !0,
|
@@ -8559,7 +8567,7 @@ var yn = {
|
|
8559
8567
|
case 6:
|
8560
8568
|
return _context83.abrupt("return");
|
8561
8569
|
case 7:
|
8562
|
-
!
|
8570
|
+
!M.chat || this._isModelLoading || ((i = this._webModel.introMessage) != null && i.removeAfterMessage && ((n = this._removeIntro) == null || n.call(this)), e.addLoadingMessage(), this.generateResp(e, t, M.chat));
|
8563
8571
|
case 8:
|
8564
8572
|
case "end":
|
8565
8573
|
return _context83.stop();
|
@@ -8579,19 +8587,19 @@ var yn = {
|
|
8579
8587
|
return _regeneratorRuntime().wrap(function _callee84$(_context84) {
|
8580
8588
|
while (1) switch (_context84.prev = _context84.next) {
|
8581
8589
|
case 0:
|
8582
|
-
(t = this._messages) == null || t.addNewErrorMessage("service",
|
8590
|
+
(t = this._messages) == null || t.addNewErrorMessage("service", M.GENERIC_ERROR);
|
8583
8591
|
console.error(e);
|
8584
8592
|
this._isModelLoaded = !1;
|
8585
8593
|
this._isModelLoading = !1;
|
8586
|
-
_context84.t0 =
|
8594
|
+
_context84.t0 = M.chat;
|
8587
8595
|
if (!_context84.t0) {
|
8588
8596
|
_context84.next = 9;
|
8589
8597
|
break;
|
8590
8598
|
}
|
8591
8599
|
_context84.next = 8;
|
8592
|
-
return
|
8600
|
+
return M.chat.unload();
|
8593
8601
|
case 8:
|
8594
|
-
|
8602
|
+
M.chat = void 0;
|
8595
8603
|
case 9:
|
8596
8604
|
case "end":
|
8597
8605
|
return _context84.stop();
|
@@ -8618,19 +8626,24 @@ var yn = {
|
|
8618
8626
|
}
|
8619
8627
|
});
|
8620
8628
|
}
|
8629
|
+
}, {
|
8630
|
+
key: "clearAllCache",
|
8631
|
+
value: function clearAllCache() {
|
8632
|
+
M.clearCache("webllm/model"), M.clearCache("webllm/wasm");
|
8633
|
+
}
|
8621
8634
|
}, {
|
8622
8635
|
key: "clearCache",
|
8623
|
-
value: function clearCache() {
|
8624
|
-
caches.open(
|
8625
|
-
|
8626
|
-
|
8627
|
-
|
8636
|
+
value: function clearCache(e) {
|
8637
|
+
caches.open(e).then(function (t) {
|
8638
|
+
t.keys().then(function (i) {
|
8639
|
+
i.forEach(function (n) {
|
8640
|
+
t["delete"](n);
|
8628
8641
|
});
|
8629
8642
|
});
|
8630
8643
|
});
|
8631
8644
|
}
|
8632
8645
|
}]);
|
8633
|
-
return
|
8646
|
+
return M;
|
8634
8647
|
}(Le);
|
8635
8648
|
et.GENERIC_ERROR = "Error, please check the following list of [instructions](https://deepchat.dev/docs/webModel#error) to fix this.";
|
8636
8649
|
et.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models";
|
@@ -8787,7 +8800,7 @@ var qo = /*#__PURE__*/function () {
|
|
8787
8800
|
key: "getText",
|
8788
8801
|
value: function getText(e, t) {
|
8789
8802
|
var i, n;
|
8790
|
-
if (!e.directConnection && !e.request && !e.webModel && !e.demo) return "Connect to any API using the [request](https://deepchat.dev/docs/connect#Request)\n property or a popular service via\n [directConnection](https://deepchat.dev/docs/directConnection/#directConnection).\n \n Host AI entirely on your browser via [webModel](HERE).\n \n To get started checkout the [Start](https://deepchat.dev/start) page and\n live code [examples](https://deepchat.dev/examples/frameworks).\n \n To remove this message set the [demo](https://deepchat.dev/docs/demo#demo) property to true.";
|
8803
|
+
if (!e.directConnection && !e.request && !e.webModel && !e.demo) return "Connect to any API using the [request](https://deepchat.dev/docs/connect#Request)\n property or a popular service via\n [directConnection](https://deepchat.dev/docs/directConnection/#directConnection).\n \n Host AI entirely on your browser via a [webModel](HERE).\n \n To get started checkout the [Start](https://deepchat.dev/start) page and\n live code [examples](https://deepchat.dev/examples/frameworks).\n \n To remove this message set the [demo](https://deepchat.dev/docs/demo#demo) property to true.";
|
8791
8804
|
if (e.directConnection) {
|
8792
8805
|
if (!t.isDirectConnection()) return "Please define a valid service inside\n the [directConnection](https://deepchat.dev/docs/directConnection/#directConnection) object.";
|
8793
8806
|
var r = (i = e.directConnection.openAI) == null ? void 0 : i.chat;
|
@@ -9236,13 +9249,13 @@ var te = /*#__PURE__*/function () {
|
|
9236
9249
|
key: "unsetAllCSS",
|
9237
9250
|
value: function unsetAllCSS(e, t) {
|
9238
9251
|
var i, n;
|
9239
|
-
t.container &&
|
9252
|
+
t.container && T.unsetAllCSSMouseStates(e, t.container), (i = t.svg) != null && i.styles && T.unsetAllCSSMouseStates(e.children[0], t.svg.styles), (n = t.text) != null && n.styles && T.unsetAllCSSMouseStates(e.children[0], t.text.styles);
|
9240
9253
|
}
|
9241
9254
|
}, {
|
9242
9255
|
key: "unsetActionCSS",
|
9243
9256
|
value: function unsetActionCSS(e, t) {
|
9244
9257
|
var i, n;
|
9245
|
-
t.container &&
|
9258
|
+
t.container && T.unsetActivityCSSMouseStates(e, t.container), (i = t.svg) != null && i.styles && T.unsetActivityCSSMouseStates(e.children[0], t.svg.styles), (n = t.text) != null && n.styles && T.unsetActivityCSSMouseStates(e.children[0], t.text.styles);
|
9246
9259
|
}
|
9247
9260
|
}, {
|
9248
9261
|
key: "setElementsCSS",
|
@@ -9375,7 +9388,7 @@ var we = /*#__PURE__*/function () {
|
|
9375
9388
|
r = t.dropupText,
|
9376
9389
|
o = document.createElement("div");
|
9377
9390
|
Object.assign(o.style, (l = i == null ? void 0 : i.item) == null ? void 0 : l["default"]), we.populateItem(n, o, r, i), o.classList.add("dropup-menu-item");
|
9378
|
-
var a =
|
9391
|
+
var a = T.processStateful((i == null ? void 0 : i.item) || {}, {
|
9379
9392
|
backgroundColor: "#f3f3f3"
|
9380
9393
|
}, {
|
9381
9394
|
backgroundColor: "#ebebeb"
|
@@ -12397,7 +12410,7 @@ var b = /*#__PURE__*/function (_mo) {
|
|
12397
12410
|
return console.warn("submitUserMessage failed - please wait for chat view to render before calling this property.");
|
12398
12411
|
}, _this68.focusInput = function () {
|
12399
12412
|
return Qt.focusFromParentElement(_this68._elementRef);
|
12400
|
-
}, _this68.refreshMessages = function () {}, _this68.clearMessages = function () {}, _this68.scrollToBottom = function () {}, _this68.disableSubmitButton = function () {}, _this68.
|
12413
|
+
}, _this68.refreshMessages = function () {}, _this68.clearMessages = function () {}, _this68.scrollToBottom = function () {}, _this68.disableSubmitButton = function () {}, _this68._hasBeenRendered = !1, _this68._auxiliaryStyleApplied = !1, Uo.appendStyleSheetToHead(), _this68._elementRef = document.createElement("div"), _this68._elementRef.id = "container", _this68.attachShadow({
|
12401
12414
|
mode: "open"
|
12402
12415
|
}).appendChild(_this68._elementRef), Ei.apply(Ta, _this68.shadowRoot), setTimeout(function () {
|
12403
12416
|
_this68._hasBeenRendered || _this68.onRender();
|
@@ -23,10 +23,10 @@ export interface WebModelUrls {
|
|
23
23
|
}
|
24
24
|
export interface WebModelConfig {
|
25
25
|
model?: WebModelName;
|
26
|
-
worker?: Worker;
|
27
26
|
urls?: WebModelUrls;
|
28
27
|
load?: WebModelLoad;
|
29
28
|
introMessage?: WebModelIntro;
|
29
|
+
worker?: Worker;
|
30
30
|
}
|
31
31
|
export type WebModel = boolean | WebModelConfig;
|
32
32
|
//# sourceMappingURL=webModel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webModel.d.ts","sourceRoot":"","sources":["../../../../src/types/webModel/webModel.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,4BAA4B,GAC5B,6BAA6B,GAC7B,4BAA4B,GAC5B,6BAA6B,GAC7B,6BAA6B,GAC7B,qCAAqC,GACrC,qCAAqC,GACrC,sBAAsB,GACtB,8BAA8B,GAC9B,8BAA8B,GAC9B,4BAA4B,GAC5B,4BAA4B,GAC5B,6BAA6B,GAC7B,6BAA6B,GAC7B,kCAAkC,GAClC,kCAAkC,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO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AC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,cAAc,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAgBD,OAAO,CAAC,0BAA0B;
|
1
|
+
{"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAgBD,OAAO,CAAC,0BAA0B;IAqBlC,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOlF,QAAQ;CACT"}
|
@@ -48,6 +48,7 @@ export declare class WebModel extends BaseServiceIO {
|
|
48
48
|
callServiceAPI(messages: Messages, pMessages: MessageContentI[]): Promise<void>;
|
49
49
|
private unloadChat;
|
50
50
|
isWebModel(): boolean;
|
51
|
+
private static clearAllCache;
|
51
52
|
private static clearCache;
|
52
53
|
}
|
53
54
|
//# sourceMappingURL=webModel.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webModel.d.ts","sourceRoot":"","sources":["../../../src/webModel/webModel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"webModel.d.ts","sourceRoot":"","sources":["../../../src/webModel/webModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAiB,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAG9D,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;AAGD,qBAAa,QAAS,SAAQ,aAAa;IACzC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAuB;IAE3C,OA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
6
|
private static readonly EXPORT_BUTTON_CLASS;
|
7
7
|
private static enableButtons;
|
8
|
-
static setUpInitial(init: (files?: FileList) => void, introMessage?: WebModelIntro, chatEl?: HTMLElement): string;
|
8
|
+
static setUpInitial(init: (files?: FileList) => void, introMessage?: WebModelIntro, chatEl?: HTMLElement, isWorker?: boolean): string;
|
9
9
|
private static exportFile;
|
10
|
-
static setUpAfterLoad(files: File[], introMessage?: WebModelIntro, chatEl?: HTMLElement): string;
|
10
|
+
static setUpAfterLoad(files: File[], introMessage?: WebModelIntro, chatEl?: HTMLElement, isWorker?: boolean): string;
|
11
11
|
}
|
12
12
|
//# sourceMappingURL=webModelIntroMessage.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webModelIntroMessage.d.ts","sourceRoot":"","sources":["../../../src/webModel/webModelIntroMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAGzD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAA6B;IACxE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA0B;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAA6B;IAExE,OAAO,CAAC,MAAM,CAAC,aAAa;
|
1
|
+
{"version":3,"file":"webModelIntroMessage.d.ts","sourceRoot":"","sources":["../../../src/webModel/webModelIntroMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAGzD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAA6B;IACxE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA0B;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAA6B;IAExE,OAAO,CAAC,MAAM,CAAC,aAAa;WAUd,YAAY,CACtB,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,KAAK,IAAI,EAAE,YAAY,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO;IA6B5G,OAAO,CAAC,MAAM,CAAC,UAAU;WAoBX,cAAc,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,YAAY,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO;CAenH"}
|