sooyie-pgss 0.0.9 → 0.0.10
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/index-Ge5nHDkt.mjs +408 -0
- package/dist/index.mjs +5 -3
- package/dist/style.css +1 -1
- package/dts/src/api/pgss/pgss-chat/types.d.ts +3 -0
- package/dts/src/api/pgss/pgss-deny-file/index.js +2 -2
- package/dts/src/lang/pgss/en.d.ts +1 -0
- package/dts/src/lang/pgss/en.js +1 -0
- package/dts/src/lang/pgss/zh-cn.d.ts +1 -0
- package/dts/src/lang/pgss/zh-cn.js +1 -0
- package/dts/src/views/pgss/pgss-chat/index.vue.js +18 -2
- package/dts/src/views/pgss/pgss-sensitive-word/index.vue.js +10 -4
- package/package.json +1 -1
- package/dist/index-CTQX0yic.mjs +0 -401
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { defineComponent as ce, ref as i, resolveComponent as V, resolveDirective as de, openBlock as r, createElementBlock as u, withDirectives as H, createVNode as g, vShow as j, createElementVNode as l, withCtx as b, createBlock as M, createTextVNode as G, toDisplayString as p, createCommentVNode as pe, Fragment as A, renderList as P, normalizeClass as ve, nextTick as he } from "vue";
|
|
2
|
+
import { ElMessage as S } from "element-plus";
|
|
3
|
+
import { useI18n as fe } from "vue-i18n";
|
|
4
|
+
import { a as J } from "./index-MA9jC8ZF.mjs";
|
|
5
|
+
import { u as W } from "./index-CeyTmMNJ.mjs";
|
|
6
|
+
import { c as T } from "./rename.vue_vue_type_script_setup_true_lang-CAXpy7Ny.mjs";
|
|
7
|
+
import _e from "./history-d-QiRe_o.mjs";
|
|
8
|
+
import ge from "./new-conversation-BJrE2piC.mjs";
|
|
9
|
+
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
+
const ye = { class: "chat-container" }, Ie = { class: "chat-main" }, ke = { class: "chat-header" }, be = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "chat-empty"
|
|
13
|
+
}, we = { class: "chat-empty__title" }, Ce = { class: "chat-empty__desc" }, $e = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "message-list"
|
|
16
|
+
}, Ve = { class: "message__avatar" }, Ue = { class: "message__content" }, Ne = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "message__bubble"
|
|
19
|
+
}, Le = {
|
|
20
|
+
key: 1,
|
|
21
|
+
class: "message__prompt-wrap"
|
|
22
|
+
}, Oe = { class: "message__raw-bubble" }, Ae = { class: "message__prompt" }, Se = ["onClick"], Te = { class: "message__prompt-label" }, De = { class: "message__prompt-toggle" }, Re = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "message__bubble"
|
|
25
|
+
}, Be = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "message__pending"
|
|
28
|
+
}, He = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "message__answer"
|
|
31
|
+
}, Me = { class: "chat-input" }, Pe = { class: "chat-input__box" }, qe = { class: "chat-input__toolbar" }, Ee = { class: "chat-input__selectors" }, Qe = /* @__PURE__ */ ce({
|
|
32
|
+
__name: "index",
|
|
33
|
+
setup(xe) {
|
|
34
|
+
const { t: I } = fe(), U = i(!1), q = i(), v = i(), w = i(!1), N = i(!1), D = i(!1), c = i([]), k = i(""), C = i(!1), E = i();
|
|
35
|
+
let L = 0;
|
|
36
|
+
const m = i(), h = i([]), R = i(!1), y = i(), _ = i([]), O = i(!1);
|
|
37
|
+
let Q = !1;
|
|
38
|
+
function X() {
|
|
39
|
+
return `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
|
|
40
|
+
}
|
|
41
|
+
async function B() {
|
|
42
|
+
await he();
|
|
43
|
+
const e = E.value;
|
|
44
|
+
e && (e.scrollTop = e.scrollHeight);
|
|
45
|
+
}
|
|
46
|
+
function Y(e) {
|
|
47
|
+
e.thinkingOpen = !e.thinkingOpen;
|
|
48
|
+
}
|
|
49
|
+
function x(e) {
|
|
50
|
+
R.value = !0;
|
|
51
|
+
const s = {
|
|
52
|
+
curPage: 1,
|
|
53
|
+
pageSize: 100,
|
|
54
|
+
likeIdentityName: e || void 0
|
|
55
|
+
};
|
|
56
|
+
W.findPage(s).then(({ data: n }) => {
|
|
57
|
+
h.value = (n.results ?? []).filter((o) => !!o.thirdUserId).map((o) => ({
|
|
58
|
+
value: o.thirdUserId,
|
|
59
|
+
label: o.identityName ? `${o.identityName}(${o.thirdUserId})` : o.thirdUserId
|
|
60
|
+
}));
|
|
61
|
+
}).catch((n) => {
|
|
62
|
+
console.error("[pgss-chat] 用户列表加载失败:", n), h.value = [];
|
|
63
|
+
}).finally(() => {
|
|
64
|
+
R.value = !1;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function Z() {
|
|
68
|
+
Q || O.value || (O.value = !0, J.findList().then(({ data: e }) => {
|
|
69
|
+
_.value = e.results ?? [], Q = !0;
|
|
70
|
+
}).catch((e) => {
|
|
71
|
+
console.error("[pgss-chat] 应用列表加载失败:", e), _.value = [];
|
|
72
|
+
}).finally(() => {
|
|
73
|
+
O.value = !1;
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
function ee(e) {
|
|
77
|
+
e && !h.value.length && x("");
|
|
78
|
+
}
|
|
79
|
+
function se(e) {
|
|
80
|
+
e && Z();
|
|
81
|
+
}
|
|
82
|
+
function te(e) {
|
|
83
|
+
v.value = e.conversationId, w.value = !0, re(e.conversationId), T.getUserAppInfo({ conversationId: e.conversationId }).then(({ data: s }) => {
|
|
84
|
+
z(
|
|
85
|
+
(s == null ? void 0 : s.thirdUserId) || e.thirdUserId,
|
|
86
|
+
(s == null ? void 0 : s.appId) || e.appId
|
|
87
|
+
);
|
|
88
|
+
}).catch((s) => {
|
|
89
|
+
console.error("[pgss-chat] 对话用户/应用信息加载失败:", s), z(e.thirdUserId, e.appId);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function z(e, s) {
|
|
93
|
+
e && (m.value = e, ne(e)), s && (y.value = s, le(s));
|
|
94
|
+
}
|
|
95
|
+
function ne(e) {
|
|
96
|
+
h.value.some((s) => s.value === e) || W.findList({ thirdUserId: e }).then(({ data: s }) => {
|
|
97
|
+
const n = ((s == null ? void 0 : s.results) ?? []).find(
|
|
98
|
+
(d) => d.thirdUserId === e
|
|
99
|
+
), o = n != null && n.identityName ? `${n.identityName}(${e})` : e;
|
|
100
|
+
h.value.some((d) => d.value === e) || (h.value = [{ value: e, label: o }, ...h.value]);
|
|
101
|
+
}).catch((s) => {
|
|
102
|
+
console.error("[pgss-chat] 历史对话用户信息加载失败:", s);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function le(e) {
|
|
106
|
+
_.value.some((s) => s.appId === e) || J.findById({ appId: e }).then(({ data: s }) => {
|
|
107
|
+
s && !_.value.some((n) => n.appId === e) && (_.value = [s, ..._.value]);
|
|
108
|
+
}).catch((s) => {
|
|
109
|
+
console.error("[pgss-chat] 历史对话应用信息加载失败:", s);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function ae(e) {
|
|
113
|
+
e.conversationId === v.value && K();
|
|
114
|
+
}
|
|
115
|
+
function oe(e) {
|
|
116
|
+
m.value = e.thirdUserId, y.value = e.appId, h.value = [
|
|
117
|
+
{ value: e.thirdUserId, label: e.userLabel }
|
|
118
|
+
], _.value = [
|
|
119
|
+
{ appId: e.appId, appName: e.appLabel }
|
|
120
|
+
], w.value = !0, N.value = !1, c.value = [], v.value = void 0, k.value = "";
|
|
121
|
+
}
|
|
122
|
+
function re(e) {
|
|
123
|
+
e && (D.value = !0, T.getHistoryMessages({ conversationId: e }).then(({ data: s }) => {
|
|
124
|
+
const n = (s == null ? void 0 : s.results) ?? [], o = [];
|
|
125
|
+
n.forEach((d, a) => {
|
|
126
|
+
const f = d.query ?? "", $ = d.rawQuery || f;
|
|
127
|
+
(f || $) && o.push({
|
|
128
|
+
id: `history-user-${a}`,
|
|
129
|
+
role: "user",
|
|
130
|
+
content: $,
|
|
131
|
+
rawQuery: $,
|
|
132
|
+
thinking: f || void 0,
|
|
133
|
+
thinkingOpen: !0
|
|
134
|
+
}), o.push({
|
|
135
|
+
id: `history-ai-${a}`,
|
|
136
|
+
role: "ai",
|
|
137
|
+
content: d.answer ?? ""
|
|
138
|
+
});
|
|
139
|
+
}), c.value = o, B();
|
|
140
|
+
}).catch((s) => {
|
|
141
|
+
console.error("[pgss-chat] 历史消息加载失败:", s), c.value = [], S.error(I("chat.historyLoadFail"));
|
|
142
|
+
}).finally(() => {
|
|
143
|
+
D.value = !1;
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
function ie(e) {
|
|
147
|
+
e.key !== "Enter" || e.shiftKey || e.isComposing || (e.preventDefault(), F());
|
|
148
|
+
}
|
|
149
|
+
async function F() {
|
|
150
|
+
var d;
|
|
151
|
+
const e = k.value.trim();
|
|
152
|
+
if (!e || C.value)
|
|
153
|
+
return;
|
|
154
|
+
if (!m.value) {
|
|
155
|
+
S.warning(I("chat.userRequired"));
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
if (!y.value) {
|
|
159
|
+
S.warning(I("chat.appTypeRequired"));
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
L += 1, c.value.push({
|
|
163
|
+
id: `user-${L}`,
|
|
164
|
+
role: "user",
|
|
165
|
+
content: e
|
|
166
|
+
}), L += 1, c.value.push({
|
|
167
|
+
id: `ai-${L}`,
|
|
168
|
+
role: "ai",
|
|
169
|
+
content: "",
|
|
170
|
+
pending: !0
|
|
171
|
+
});
|
|
172
|
+
const s = c.value[c.value.length - 2], n = c.value[c.value.length - 1];
|
|
173
|
+
k.value = "", C.value = !0, B();
|
|
174
|
+
const o = {
|
|
175
|
+
requestId: X(),
|
|
176
|
+
appId: y.value,
|
|
177
|
+
thirdUserId: m.value,
|
|
178
|
+
content: e,
|
|
179
|
+
// 基于历史对话继续提问时带上 conversationId,首次对话不传
|
|
180
|
+
...v.value ? { conversationId: v.value } : {}
|
|
181
|
+
};
|
|
182
|
+
try {
|
|
183
|
+
const { data: a } = await T.chat(o);
|
|
184
|
+
if (n.pending = !1, (a == null ? void 0 : a.success) === !1) {
|
|
185
|
+
n.content = I("chat.failAnswer"), S.error(I("chat.sendFail"));
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
s.thinking = (a == null ? void 0 : a.promptOutput) ?? "", s.thinkingOpen = !0, s.rawQuery = (a == null ? void 0 : a.rawQuery) || e, n.content = (a == null ? void 0 : a.contentAnswer) ?? "";
|
|
189
|
+
const f = a == null ? void 0 : a.conversationId;
|
|
190
|
+
f ? v.value = f : v.value || await ue();
|
|
191
|
+
} catch (a) {
|
|
192
|
+
console.error("[pgss-chat] 发送对话消息失败:", a), n.pending = !1, n.content = I("chat.failAnswer");
|
|
193
|
+
} finally {
|
|
194
|
+
C.value = !1, B(), (d = q.value) == null || d.refresh();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
async function ue() {
|
|
198
|
+
try {
|
|
199
|
+
const { data: e } = await T.getHistoryList({}), s = ((e == null ? void 0 : e.results) ?? []).filter(
|
|
200
|
+
(n) => !!n.conversationId && n.thirdUserId === m.value && n.appId === y.value
|
|
201
|
+
).sort(
|
|
202
|
+
(n, o) => (o.updateTime ?? o.createTime ?? "").localeCompare(
|
|
203
|
+
n.updateTime ?? n.createTime ?? ""
|
|
204
|
+
)
|
|
205
|
+
)[0];
|
|
206
|
+
s != null && s.conversationId && (v.value = s.conversationId);
|
|
207
|
+
} catch (e) {
|
|
208
|
+
console.error("[pgss-chat] 回查新建对话ID失败:", e);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function K() {
|
|
212
|
+
c.value = [], v.value = void 0, w.value = !1;
|
|
213
|
+
}
|
|
214
|
+
return (e, s) => {
|
|
215
|
+
const n = V("el-button"), o = V("el-tooltip"), d = V("el-input"), a = V("el-option"), f = V("el-select"), $ = de("loading");
|
|
216
|
+
return r(), u("div", ye, [
|
|
217
|
+
H(g(_e, {
|
|
218
|
+
ref_key: "historyRef",
|
|
219
|
+
ref: q,
|
|
220
|
+
"conversation-id": v.value,
|
|
221
|
+
onSelect: te,
|
|
222
|
+
onDelete: ae,
|
|
223
|
+
onNew: s[0] || (s[0] = (t) => N.value = !0)
|
|
224
|
+
}, null, 8, ["conversation-id"]), [
|
|
225
|
+
[j, !U.value]
|
|
226
|
+
]),
|
|
227
|
+
g(ge, {
|
|
228
|
+
modelValue: N.value,
|
|
229
|
+
"onUpdate:modelValue": s[1] || (s[1] = (t) => N.value = t),
|
|
230
|
+
onConfirm: oe
|
|
231
|
+
}, null, 8, ["modelValue"]),
|
|
232
|
+
l("div", Ie, [
|
|
233
|
+
l("div", ke, [
|
|
234
|
+
g(o, {
|
|
235
|
+
content: U.value ? e.$t("chat.expandSidebar") : e.$t("chat.collapseSidebar"),
|
|
236
|
+
placement: "bottom"
|
|
237
|
+
}, {
|
|
238
|
+
default: b(() => [
|
|
239
|
+
g(n, {
|
|
240
|
+
text: "",
|
|
241
|
+
class: "chat-header__toggle",
|
|
242
|
+
onClick: s[2] || (s[2] = (t) => U.value = !U.value)
|
|
243
|
+
}, {
|
|
244
|
+
default: b(() => [...s[6] || (s[6] = [
|
|
245
|
+
l("svg", {
|
|
246
|
+
viewBox: "0 0 24 24",
|
|
247
|
+
width: "18",
|
|
248
|
+
height: "18",
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
}, [
|
|
251
|
+
l("rect", {
|
|
252
|
+
x: "3",
|
|
253
|
+
y: "4.5",
|
|
254
|
+
width: "18",
|
|
255
|
+
height: "15",
|
|
256
|
+
rx: "4",
|
|
257
|
+
fill: "none",
|
|
258
|
+
stroke: "currentColor",
|
|
259
|
+
"stroke-width": "1.8"
|
|
260
|
+
}),
|
|
261
|
+
l("path", {
|
|
262
|
+
d: "M9.6 5.4 V18.6",
|
|
263
|
+
stroke: "currentColor",
|
|
264
|
+
"stroke-width": "1.8",
|
|
265
|
+
"stroke-linecap": "round"
|
|
266
|
+
})
|
|
267
|
+
], -1)
|
|
268
|
+
])]),
|
|
269
|
+
_: 1
|
|
270
|
+
})
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["content"]),
|
|
274
|
+
c.value.length ? (r(), M(n, {
|
|
275
|
+
key: 0,
|
|
276
|
+
text: "",
|
|
277
|
+
class: "chat-header__action",
|
|
278
|
+
onClick: K
|
|
279
|
+
}, {
|
|
280
|
+
default: b(() => [
|
|
281
|
+
G(p(e.$t("chat.clear")), 1)
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
})) : pe("", !0)
|
|
285
|
+
]),
|
|
286
|
+
H((r(), u("div", {
|
|
287
|
+
ref_key: "messageBodyRef",
|
|
288
|
+
ref: E,
|
|
289
|
+
class: "chat-body"
|
|
290
|
+
}, [
|
|
291
|
+
c.value.length ? (r(), u("div", $e, [
|
|
292
|
+
(r(!0), u(A, null, P(c.value, (t) => (r(), u("div", {
|
|
293
|
+
key: t.id,
|
|
294
|
+
class: ve(["message", t.role === "user" ? "message--user" : "message--ai"])
|
|
295
|
+
}, [
|
|
296
|
+
l("div", Ve, p(t.role === "user" ? e.$t("chat.meAvatar") : "AI"), 1),
|
|
297
|
+
l("div", Ue, [
|
|
298
|
+
t.role === "user" ? (r(), u(A, { key: 0 }, [
|
|
299
|
+
t.thinking ? (r(), u("div", Le, [
|
|
300
|
+
l("div", Oe, p(t.rawQuery || t.content), 1),
|
|
301
|
+
l("div", Ae, [
|
|
302
|
+
l("div", {
|
|
303
|
+
class: "message__prompt-head",
|
|
304
|
+
onClick: (ze) => Y(t)
|
|
305
|
+
}, [
|
|
306
|
+
l("span", Te, p(e.$t("chat.enhancedPrompt")), 1),
|
|
307
|
+
l("span", De, p(t.thinkingOpen ? e.$t("chat.collapse") : e.$t("chat.expand")), 1)
|
|
308
|
+
], 8, Se),
|
|
309
|
+
H(l("div", { class: "message__prompt-body" }, p(t.thinking), 513), [
|
|
310
|
+
[j, t.thinkingOpen]
|
|
311
|
+
])
|
|
312
|
+
])
|
|
313
|
+
])) : (r(), u("div", Ne, p(t.content), 1))
|
|
314
|
+
], 64)) : (r(), u("div", Re, [
|
|
315
|
+
t.pending ? (r(), u("div", Be, [
|
|
316
|
+
s[8] || (s[8] = l("span", { class: "message__pending-dot" }, null, -1)),
|
|
317
|
+
s[9] || (s[9] = l("span", { class: "message__pending-dot" }, null, -1)),
|
|
318
|
+
s[10] || (s[10] = l("span", { class: "message__pending-dot" }, null, -1)),
|
|
319
|
+
l("span", null, p(e.$t("chat.generating")), 1)
|
|
320
|
+
])) : (r(), u("div", He, p(t.content), 1))
|
|
321
|
+
]))
|
|
322
|
+
])
|
|
323
|
+
], 2))), 128))
|
|
324
|
+
])) : (r(), u("div", be, [
|
|
325
|
+
s[7] || (s[7] = l("div", { class: "chat-empty__logo" }, "AI", -1)),
|
|
326
|
+
l("p", we, p(e.$t("chat.welcomeTitle")), 1),
|
|
327
|
+
l("p", Ce, p(e.$t("chat.welcomeDesc")), 1)
|
|
328
|
+
]))
|
|
329
|
+
])), [
|
|
330
|
+
[$, D.value]
|
|
331
|
+
]),
|
|
332
|
+
l("div", Me, [
|
|
333
|
+
l("div", Pe, [
|
|
334
|
+
g(d, {
|
|
335
|
+
modelValue: k.value,
|
|
336
|
+
"onUpdate:modelValue": s[3] || (s[3] = (t) => k.value = t),
|
|
337
|
+
type: "textarea",
|
|
338
|
+
autosize: { minRows: 2, maxRows: 6 },
|
|
339
|
+
resize: "none",
|
|
340
|
+
class: "chat-input__textarea",
|
|
341
|
+
placeholder: e.$t("chat.inputPlaceholder"),
|
|
342
|
+
onKeydown: ie
|
|
343
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
344
|
+
l("div", qe, [
|
|
345
|
+
l("div", Ee, [
|
|
346
|
+
g(f, {
|
|
347
|
+
modelValue: m.value,
|
|
348
|
+
"onUpdate:modelValue": s[4] || (s[4] = (t) => m.value = t),
|
|
349
|
+
filterable: "",
|
|
350
|
+
remote: "",
|
|
351
|
+
"reserve-keyword": "",
|
|
352
|
+
disabled: w.value,
|
|
353
|
+
"remote-method": x,
|
|
354
|
+
loading: R.value,
|
|
355
|
+
placeholder: e.$t("chat.userPlaceholder"),
|
|
356
|
+
class: "chat-input__select",
|
|
357
|
+
onVisibleChange: ee
|
|
358
|
+
}, {
|
|
359
|
+
default: b(() => [
|
|
360
|
+
(r(!0), u(A, null, P(h.value, (t) => (r(), M(a, {
|
|
361
|
+
key: t.value,
|
|
362
|
+
label: t.label,
|
|
363
|
+
value: t.value
|
|
364
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
365
|
+
]),
|
|
366
|
+
_: 1
|
|
367
|
+
}, 8, ["modelValue", "disabled", "loading", "placeholder"]),
|
|
368
|
+
g(f, {
|
|
369
|
+
modelValue: y.value,
|
|
370
|
+
"onUpdate:modelValue": s[5] || (s[5] = (t) => y.value = t),
|
|
371
|
+
disabled: w.value,
|
|
372
|
+
loading: O.value,
|
|
373
|
+
placeholder: e.$t("chat.appTypePlaceholder"),
|
|
374
|
+
class: "chat-input__select",
|
|
375
|
+
onVisibleChange: se
|
|
376
|
+
}, {
|
|
377
|
+
default: b(() => [
|
|
378
|
+
(r(!0), u(A, null, P(_.value, (t) => (r(), M(a, {
|
|
379
|
+
key: t.appId,
|
|
380
|
+
label: t.appName,
|
|
381
|
+
value: t.appId
|
|
382
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
}, 8, ["modelValue", "disabled", "loading", "placeholder"])
|
|
386
|
+
]),
|
|
387
|
+
g(n, {
|
|
388
|
+
class: "chat-input__send",
|
|
389
|
+
loading: C.value,
|
|
390
|
+
disabled: !k.value.trim() || C.value,
|
|
391
|
+
onClick: F
|
|
392
|
+
}, {
|
|
393
|
+
default: b(() => [
|
|
394
|
+
G(p(e.$t("chat.send")), 1)
|
|
395
|
+
]),
|
|
396
|
+
_: 1
|
|
397
|
+
}, 8, ["loading", "disabled"])
|
|
398
|
+
])
|
|
399
|
+
])
|
|
400
|
+
])
|
|
401
|
+
])
|
|
402
|
+
]);
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
}), es = /* @__PURE__ */ me(Qe, [["__scopeId", "data-v-33d08478"]]);
|
|
406
|
+
export {
|
|
407
|
+
es as default
|
|
408
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -131,7 +131,8 @@ const Vs = {
|
|
|
131
131
|
newConversationTitle: "新建对话",
|
|
132
132
|
userLabel: "用户",
|
|
133
133
|
appLabel: "应用",
|
|
134
|
-
enhancedPrompt: "增强后提示词"
|
|
134
|
+
enhancedPrompt: "增强后提示词",
|
|
135
|
+
rawQuery: "原始问题"
|
|
135
136
|
},
|
|
136
137
|
sensitiveWord: {
|
|
137
138
|
builtin: "内置敏感词",
|
|
@@ -342,7 +343,8 @@ const Vs = {
|
|
|
342
343
|
newConversationTitle: "新建对话",
|
|
343
344
|
userLabel: "用户",
|
|
344
345
|
appLabel: "应用",
|
|
345
|
-
enhancedPrompt: "增强后提示词"
|
|
346
|
+
enhancedPrompt: "增强后提示词",
|
|
347
|
+
rawQuery: "原始问题"
|
|
346
348
|
},
|
|
347
349
|
sensitiveWord: {
|
|
348
350
|
builtin: "内置敏感词",
|
|
@@ -3164,7 +3166,7 @@ Es({
|
|
|
3164
3166
|
// 刷新时,滚动条位置还原
|
|
3165
3167
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3166
3168
|
});
|
|
3167
|
-
const Xi = /* @__PURE__ */ Object.assign({ "./views/pgss/pgss-app-info/app-info.vue": () => import("./app-info-Cw_eyZTg.mjs"), "./views/pgss/pgss-app-info/edit.vue": () => import("./edit-BhgyLRMN.mjs"), "./views/pgss/pgss-app-info/index.vue": () => import("./index-BO3Wh1We.mjs"), "./views/pgss/pgss-app-info/info.vue": () => import("./info-D4ej9h0v.mjs"), "./views/pgss/pgss-app-info/resetPwd.vue": () => import("./resetPwd-CeTAHbCm.mjs"), "./views/pgss/pgss-chat/history.vue": () => import("./history-d-QiRe_o.mjs"), "./views/pgss/pgss-chat/index.vue": () => import("./index-
|
|
3169
|
+
const Xi = /* @__PURE__ */ Object.assign({ "./views/pgss/pgss-app-info/app-info.vue": () => import("./app-info-Cw_eyZTg.mjs"), "./views/pgss/pgss-app-info/edit.vue": () => import("./edit-BhgyLRMN.mjs"), "./views/pgss/pgss-app-info/index.vue": () => import("./index-BO3Wh1We.mjs"), "./views/pgss/pgss-app-info/info.vue": () => import("./info-D4ej9h0v.mjs"), "./views/pgss/pgss-app-info/resetPwd.vue": () => import("./resetPwd-CeTAHbCm.mjs"), "./views/pgss/pgss-chat/history.vue": () => import("./history-d-QiRe_o.mjs"), "./views/pgss/pgss-chat/index.vue": () => import("./index-Ge5nHDkt.mjs"), "./views/pgss/pgss-chat/new-conversation.vue": () => import("./new-conversation-BJrE2piC.mjs"), "./views/pgss/pgss-chat/rename.vue": () => import("./rename-x4dBXv7B.mjs"), "./views/pgss/pgss-homepage/apiCall.vue": () => import("./apiCall-BhS14qUE.mjs"), "./views/pgss/pgss-homepage/image.vue": () => import("./image-CROZrkNB.mjs"), "./views/pgss/pgss-homepage/index.vue": () => import("./index-BP4jibk6.mjs"), "./views/pgss/pgss-login/index.vue": () => import("./index-D_e-YTyb.mjs"), "./views/pgss/pgss-message-log/index.vue": () => import("./index-hXLLE5vI.mjs"), "./views/pgss/pgss-message-log/info.vue": () => import("./info-B8gsATXc.mjs").then((e) => e.i), "./views/pgss/pgss-portrait-weight/index.vue": () => import("./index-BkjILuRR.mjs"), "./views/pgss/pgss-prompt-template-custom/edit.vue": () => import("./edit-DxDpftpV.mjs"), "./views/pgss/pgss-prompt-template-custom/index.vue": () => import("./index-HBIIK6iA.mjs"), "./views/pgss/pgss-prompt-template/edit.vue": () => import("./edit-By9buUGg.mjs"), "./views/pgss/pgss-prompt-template/index.vue": () => import("./index-BykLuLsz.mjs"), "./views/pgss/pgss-sensitive-word/index.vue": () => import("./index-D1Alu84X.mjs"), "./views/pgss/pgss-user-portrait/index.vue": () => import("./index-ByT0tywU.mjs"), "./views/pgss/pgss-user-portrait/info.vue": () => import("./info-CAk_CRho.mjs"), "./views/pgss/pgss-user-portrait/simulateNum.vue": () => import("./simulateNum-DcFDMOSh.mjs") }), so = {
|
|
3168
3170
|
install(e) {
|
|
3169
3171
|
Ls(Xi, 7), Us(xs), js(Hs), e.use(Bi);
|
|
3170
3172
|
}
|