Merge branch 'main' of https://github.com/maxkb-dev/maxkb
This commit is contained in:
commit
6805ebe38f
@ -301,7 +301,7 @@ class BaseChatStep(IChatStep):
|
|||||||
reasoning_content = reasoning_result.get('reasoning_content') + reasoning_result_end.get(
|
reasoning_content = reasoning_result.get('reasoning_content') + reasoning_result_end.get(
|
||||||
'reasoning_content')
|
'reasoning_content')
|
||||||
post_response_handler.handler(chat_id, chat_record_id, paragraph_list, problem_text,
|
post_response_handler.handler(chat_id, chat_record_id, paragraph_list, problem_text,
|
||||||
chat_result.content, manage, self, padding_problem_text, client_id,
|
content, manage, self, padding_problem_text, client_id,
|
||||||
reasoning_content=reasoning_content if reasoning_content_enable else '')
|
reasoning_content=reasoning_content if reasoning_content_enable else '')
|
||||||
add_access_num(client_id, client_type, manage.context.get('application_id'))
|
add_access_num(client_id, client_type, manage.context.get('application_id'))
|
||||||
return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),
|
return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),
|
||||||
|
|||||||
@ -68,7 +68,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
score: {
|
score: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0
|
default: null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const isMetaObject = computed(() => typeof props.data.meta === 'object')
|
const isMetaObject = computed(() => typeof props.data.meta === 'object')
|
||||||
|
|||||||
@ -16,12 +16,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Codemirror 弹出层 -->
|
<!-- Codemirror 弹出层 -->
|
||||||
<el-dialog
|
<el-dialog v-model="dialogVisible" :title="title" append-to-body fullscreen>
|
||||||
v-model="dialogVisible"
|
|
||||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
|
||||||
append-to-body
|
|
||||||
fullscreen
|
|
||||||
>
|
|
||||||
<Codemirror
|
<Codemirror
|
||||||
v-model="cloneContent"
|
v-model="cloneContent"
|
||||||
:extensions="extensions"
|
:extensions="extensions"
|
||||||
@ -54,6 +49,7 @@ import FunctionApi from '@/api/function-lib'
|
|||||||
defineOptions({ name: 'CodemirrorEditor' })
|
defineOptions({ name: 'CodemirrorEditor' })
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
title: String
|
||||||
modelValue: any
|
modelValue: any
|
||||||
}>()
|
}>()
|
||||||
const emit = defineEmits(['update:modelValue', 'submitDialog'])
|
const emit = defineEmits(['update:modelValue', 'submitDialog'])
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
<!-- Codemirror 弹出层 -->
|
<!-- Codemirror 弹出层 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
:title="$t('views.functionLib.functionForm.form.param.code')"
|
:title="$t('dynamicsForm.default.label')"
|
||||||
append-to-body
|
append-to-body
|
||||||
fullscreen
|
fullscreen
|
||||||
>
|
>
|
||||||
|
|||||||
@ -134,7 +134,11 @@
|
|||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="mb-8" v-if="showEditor">
|
<div class="mb-8" v-if="showEditor">
|
||||||
<CodemirrorEditor v-model="form.code" @submitDialog="submitCodemirrorEditor" />
|
<CodemirrorEditor
|
||||||
|
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||||
|
v-model="form.code"
|
||||||
|
@submitDialog="submitCodemirrorEditor"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="title-decoration-1 mb-16 mt-16">
|
<h4 class="title-decoration-1 mb-16 mt-16">
|
||||||
{{ $t('common.param.outputParam') }}
|
{{ $t('common.param.outputParam') }}
|
||||||
|
|||||||
@ -29,7 +29,9 @@
|
|||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<div>
|
<div>
|
||||||
<span class="mr-8">{{ row.username }}</span>
|
<span class="mr-8">{{ row.username }}</span>
|
||||||
<el-tag v-if="isManage(row.type)" class="default-tag">{{$t('views.team.manage')}}</el-tag>
|
<el-tag v-if="isManage(row.type)" class="default-tag">{{
|
||||||
|
$t('views.team.manage')
|
||||||
|
}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div @click.stop style="margin-top: 5px">
|
<div @click.stop style="margin-top: 5px">
|
||||||
<el-dropdown trigger="click" v-if="!isManage(row.type)">
|
<el-dropdown trigger="click" v-if="!isManage(row.type)">
|
||||||
@ -38,9 +40,9 @@
|
|||||||
</span>
|
</span>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item @click.prevent="deleteMember(row)"
|
<el-dropdown-item @click.prevent="deleteMember(row)">{{
|
||||||
>{{$t('views.team.delete.button')}}</el-dropdown-item
|
$t('views.team.delete.button')
|
||||||
>
|
}}</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@ -118,7 +120,9 @@ const settingTags = reactive([
|
|||||||
|
|
||||||
watch(filterText, (val) => {
|
watch(filterText, (val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
filterMember.value = memberList.value.filter((v) => v.username.includes(val))
|
filterMember.value = memberList.value.filter((v) =>
|
||||||
|
v.username.toLowerCase().includes(val.toLowerCase())
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
filterMember.value = memberList.value
|
filterMember.value = memberList.value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,6 +135,7 @@
|
|||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
append-to-body
|
append-to-body
|
||||||
|
@submit.prevent
|
||||||
>
|
>
|
||||||
<el-form label-position="top" ref="titleFormRef" :model="form">
|
<el-form label-position="top" ref="titleFormRef" :model="form">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
|||||||
@ -79,6 +79,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
<div class="mb-8" v-if="showEditor">
|
<div class="mb-8" v-if="showEditor">
|
||||||
<CodemirrorEditor
|
<CodemirrorEditor
|
||||||
|
:title="$t('views.functionLib.functionForm.form.param.code')"
|
||||||
v-model="chat_data.code"
|
v-model="chat_data.code"
|
||||||
@wheel="wheel"
|
@wheel="wheel"
|
||||||
style="height: 130px !important"
|
style="height: 130px !important"
|
||||||
|
|||||||
@ -118,6 +118,7 @@
|
|||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<CodemirrorEditor
|
<CodemirrorEditor
|
||||||
|
title="JSON"
|
||||||
v-model="item.value"
|
v-model="item.value"
|
||||||
:style="{
|
:style="{
|
||||||
height: '100px'
|
height: '100px'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user