@blueking/bkflow-canvas-editor 0.0.17 → 0.0.18
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.cjs.js +1 -1
- package/dist/index.esm.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -29699,17 +29699,17 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
29699
29699
|
setup(e, { emit: t }) {
|
|
29700
29700
|
const n = [
|
|
29701
29701
|
{
|
|
29702
|
-
code: "
|
|
29702
|
+
code: "assistant",
|
|
29703
29703
|
name: "AI",
|
|
29704
29704
|
description: "这条 Prompt 作为AI回答的结果"
|
|
29705
29705
|
},
|
|
29706
29706
|
{
|
|
29707
|
-
code: "
|
|
29707
|
+
code: "system",
|
|
29708
29708
|
name: "系统",
|
|
29709
29709
|
description: "这条 Prompt 作为系统输入来定义角色,会在整个会话中生效"
|
|
29710
29710
|
},
|
|
29711
29711
|
{
|
|
29712
|
-
code: "
|
|
29712
|
+
code: "user",
|
|
29713
29713
|
name: "用户",
|
|
29714
29714
|
description: "这条 Prompt 作为用户的输入,可以更详细描述对角色的要求"
|
|
29715
29715
|
},
|
|
@@ -29718,7 +29718,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
29718
29718
|
name: "等待回答",
|
|
29719
29719
|
description: "这条Prompt作为AI的提问,会等待用户输入回答内容"
|
|
29720
29720
|
}
|
|
29721
|
-
], r = e, i = t, y = computed(() => n.find((V) => V.code === r.modelValue)?.name), g = () => n.filter(($) => $.code === "
|
|
29721
|
+
], r = e, i = t, y = computed(() => n.find((V) => V.code === r.modelValue)?.name), g = () => n.filter(($) => $.code === "system" ? r.index === 0 : !0), k = ($) => {
|
|
29722
29722
|
i("update:modelValue", $);
|
|
29723
29723
|
};
|
|
29724
29724
|
return ($, V) => {
|
|
@@ -29770,7 +29770,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
29770
29770
|
]);
|
|
29771
29771
|
};
|
|
29772
29772
|
}
|
|
29773
|
-
}), RoleTypeSelector = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-
|
|
29773
|
+
}), RoleTypeSelector = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-cc8e9eb1"]]), _hoisted_1$m = { class: "bkflow-canvas-icon bkflow-canvas-daoru import-trigger" }, _hoisted_2$f = { class: "prompt-content-tips" }, _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
29774
29774
|
__name: "prompt-import",
|
|
29775
29775
|
props: {
|
|
29776
29776
|
prompts: {},
|
|
@@ -29907,14 +29907,14 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
29907
29907
|
};
|
|
29908
29908
|
}), g("change", Ce);
|
|
29909
29909
|
}, V = ref(), L = ref({
|
|
29910
|
-
messages: [{ role: "
|
|
29910
|
+
messages: [{ role: "system", content: "" }],
|
|
29911
29911
|
content: ""
|
|
29912
29912
|
}), re = shallowRef([]);
|
|
29913
29913
|
watch(
|
|
29914
29914
|
() => y.inputData,
|
|
29915
29915
|
() => {
|
|
29916
29916
|
L.value = {
|
|
29917
|
-
messages: k("messages", [{ role: "
|
|
29917
|
+
messages: k("messages", [{ role: "system", content: "" }]),
|
|
29918
29918
|
content: k("content", "")
|
|
29919
29919
|
}, (!("messages" in y.inputData) || !("content" in y.inputData)) && $();
|
|
29920
29920
|
},
|
|
@@ -29939,7 +29939,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
29939
29939
|
re.value = Ce.response;
|
|
29940
29940
|
}, oe = (Ce) => {
|
|
29941
29941
|
L.value.messages.push({
|
|
29942
|
-
role: "
|
|
29942
|
+
role: "user",
|
|
29943
29943
|
content: Ce
|
|
29944
29944
|
}), $();
|
|
29945
29945
|
}, z = (Ce, he) => {
|
|
@@ -30031,7 +30031,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
|
|
|
30031
30031
|
]);
|
|
30032
30032
|
};
|
|
30033
30033
|
}
|
|
30034
|
-
}), LlmForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-
|
|
30034
|
+
}), LlmForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-39ddb79b"]]), _hoisted_1$j = { class: "node-config-input-params" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
30035
30035
|
__name: "input-params",
|
|
30036
30036
|
props: {
|
|
30037
30037
|
node: {},
|