mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复input-number为空的问题
This commit is contained in:
parent
d240c411f2
commit
a7d0adad5c
|
|
@ -17,6 +17,7 @@
|
|||
v-model="form.access_num"
|
||||
:min="0"
|
||||
:step="1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
step-strictly
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ import { MsgSuccess } from '@/utils/message'
|
|||
import { isWorkFlow } from '@/utils/application'
|
||||
import { t } from '@/locales'
|
||||
const router = useRouter()
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
// @ts-ignore
|
||||
const defaultPrompt = t('views.application.prompt.defaultPrompt', {
|
||||
|
|
@ -179,7 +180,7 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
|
|||
} else {
|
||||
router.push({ path: `/application/${res.data.id}/${res.data.type}/setting` })
|
||||
}
|
||||
|
||||
emit('refresh')
|
||||
dialogVisible.value = false
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
:max="form.search_mode === 'blend' ? 2 : 1"
|
||||
:precision="3"
|
||||
:step="0.1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
class="w-full"
|
||||
/>
|
||||
|
|
@ -87,6 +88,7 @@
|
|||
v-model="form.top_n"
|
||||
:min="1"
|
||||
:max="100"
|
||||
:value-on-clear="1"
|
||||
controls-position="right"
|
||||
class="w-full"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
:max="1"
|
||||
:precision="3"
|
||||
:step="0.1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
size="small"
|
||||
class="ml-4 mr-4"
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
shadow="hover"
|
||||
:title="item.title || '-'"
|
||||
:description="item.content"
|
||||
class="document-card layout-bg layout-bg cursor "
|
||||
class="document-card layout-bg layout-bg cursor"
|
||||
:class="item.is_active ? '' : 'disabled'"
|
||||
:showIcon="false"
|
||||
@click="editParagraph(item)"
|
||||
|
|
@ -133,6 +133,7 @@
|
|||
:max="cloneForm.search_mode === 'blend' ? 2 : 1"
|
||||
:precision="3"
|
||||
:step="0.1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
class="w-full"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
v-model="filter.min_star"
|
||||
:min="0"
|
||||
:step="1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
style="width: 100px"
|
||||
size="small"
|
||||
|
|
@ -70,6 +71,7 @@
|
|||
v-model="filter.min_trample"
|
||||
:min="0"
|
||||
:step="1"
|
||||
:value-on-clear="0"
|
||||
controls-position="right"
|
||||
style="width: 100px"
|
||||
size="small"
|
||||
|
|
|
|||
|
|
@ -169,7 +169,28 @@ const {
|
|||
} = app.config.globalProperties.$route as any
|
||||
|
||||
// @ts-ignore
|
||||
const defaultPrompt = `
|
||||
const defaultPrompt = `已知信息:
|
||||
|
||||
{{知识库检索.data}}
|
||||
|
||||
回答要求:
|
||||
|
||||
- 请使用简洁且专业的语言来回答用户的问题。
|
||||
|
||||
- 如果你不知道答案,请回答“没有在知识库中查找到相关信息,建议咨询相关技术支持或参考官方文档进行操作”。
|
||||
|
||||
- 避免提及你是从已知信息中获得的知识。
|
||||
|
||||
- 请保证答案与已知信息中描述的一致。
|
||||
|
||||
- 请使用 Markdown 语法优化答案的格式。
|
||||
|
||||
- 已知信息中的图片、链接地址和脚本语言请直接返回。
|
||||
|
||||
- 请使用与问题相同的语言来回答。
|
||||
|
||||
问题:
|
||||
|
||||
{{开始.question}}`
|
||||
const form = {
|
||||
model_id: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue