mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 对话上下文
This commit is contained in:
parent
778048e113
commit
383bbfbeed
|
|
@ -290,7 +290,7 @@ class ApplicationSerializer(serializers.Serializer):
|
|||
if update_key in instance and instance.get(update_key) is not None:
|
||||
if update_key == 'multiple_rounds_dialogue':
|
||||
application.__setattr__('dialogue_number',
|
||||
0 if instance.get(update_key) else ModelProvideConstants[
|
||||
0 if not instance.get(update_key) else ModelProvideConstants[
|
||||
model.provider].value.get_dialogue_number())
|
||||
else:
|
||||
application.__setattr__(update_key, instance.get(update_key))
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<el-form-item v-loading="loading">
|
||||
<template #label
|
||||
><h4 class="title-decoration-1 mb-16" style="color: var(--app-text-color)">
|
||||
关联应用
|
||||
</h4></template
|
||||
>
|
||||
<el-row justify="space-between" style="width: 100%">
|
||||
<el-col :span="11" v-for="(item, index) in application_list" :key="index" class="mb-16">
|
||||
<CardCheckbox value-field="id" :data="item" v-model="form.application_id_list">
|
||||
|
|
|
|||
Loading…
Reference in New Issue