feat: 对话上下文

This commit is contained in:
shaohuzhang1 2023-12-04 17:32:02 +08:00
parent 778048e113
commit 383bbfbeed
2 changed files with 6 additions and 1 deletions

View File

@ -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))

View File

@ -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">