fix: 修复历史聊天记录字段格式问题

This commit is contained in:
wangdan-fit2cloud 2024-11-27 11:29:05 +08:00
parent 5df4925dbe
commit 33ed8aa4ae

View File

@ -131,7 +131,7 @@
<template #label> <template #label>
<div class="flex-between"> <div class="flex-between">
<div>历史聊天记录</div> <div>历史聊天记录</div>
<el-select v-model="form_data.dialogue_type" type="small" style="width: 100px;"> <el-select v-model="form_data.dialogue_type" type="small" style="width: 100px">
<el-option label="节点" value="NODE" /> <el-option label="节点" value="NODE" />
<el-option label="工作流" value="WORKFLOW" /> <el-option label="工作流" value="WORKFLOW" />
</el-select> </el-select>
@ -143,9 +143,13 @@
:value-on-clear="0" :value-on-clear="0"
controls-position="right" controls-position="right"
class="w-full" class="w-full"
:step="1"
:step-strictly="true"
/> />
</el-form-item> </el-form-item>
<el-form-item label="选择图片" :rules="{ <el-form-item
label="选择图片"
:rules="{
type: 'array', type: 'array',
required: true, required: true,
message: '请选择图片', message: '请选择图片',
@ -232,7 +236,7 @@ const form = {
is_result: true, is_result: true,
temperature: null, temperature: null,
max_tokens: null, max_tokens: null,
image_list: ["start-node", "image"] image_list: ['start-node', 'image']
} }
const form_data = computed({ const form_data = computed({
@ -249,7 +253,6 @@ const form_data = computed({
} }
}) })
function getModel() { function getModel() {
if (id) { if (id) {
applicationApi.getApplicationImageModel(id).then((res: any) => { applicationApi.getApplicationImageModel(id).then((res: any) => {
@ -268,9 +271,7 @@ function getProvider() {
}) })
} }
const model_change = (model_id?: string) => { const model_change = (model_id?: string) => {}
}
function submitSystemDialog(val: string) { function submitSystemDialog(val: string) {
set(props.nodeModel.properties.node_data, 'system', val) set(props.nodeModel.properties.node_data, 'system', val)
@ -286,10 +287,6 @@ onMounted(() => {
set(props.nodeModel, 'validate', validate) set(props.nodeModel, 'validate', validate)
}) })
</script> </script>
<style scoped lang="scss"></style>
<style scoped lang="scss">
</style>