Skip to content

Commit 6805ebe

Browse files
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
2 parents dea8c73 + e7f1387 commit 6805ebe

File tree

9 files changed

+25
-18
lines changed

9 files changed

+25
-18
lines changed

apps/application/chat_pipeline/step/chat_step/impl/base_chat_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def execute_block(self, message_list: List[BaseMessage],
301301
reasoning_content = reasoning_result.get('reasoning_content') + reasoning_result_end.get(
302302
'reasoning_content')
303303
post_response_handler.handler(chat_id, chat_record_id, paragraph_list, problem_text,
304-
chat_result.content, manage, self, padding_problem_text, client_id,
304+
content, manage, self, padding_problem_text, client_id,
305305
reasoning_content=reasoning_content if reasoning_content_enable else '')
306306
add_access_num(client_id, client_type, manage.context.get('application_id'))
307307
return manage.get_base_to_response().to_block_response(str(chat_id), str(chat_record_id),

ui/src/components/ai-chat/component/ParagraphCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const props = defineProps({
6868
},
6969
score: {
7070
type: Number,
71-
default: 0
71+
default: null
7272
}
7373
})
7474
const isMetaObject = computed(() => typeof props.data.meta === 'object')

ui/src/components/codemirror-editor/index.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
</el-button>
1717
</div>
1818
<!-- Codemirror 弹出层 -->
19-
<el-dialog
20-
v-model="dialogVisible"
21-
:title="$t('views.functionLib.functionForm.form.param.code')"
22-
append-to-body
23-
fullscreen
24-
>
19+
<el-dialog v-model="dialogVisible" :title="title" append-to-body fullscreen>
2520
<Codemirror
2621
v-model="cloneContent"
2722
:extensions="extensions"
@@ -54,6 +49,7 @@ import FunctionApi from '@/api/function-lib'
5449
defineOptions({ name: 'CodemirrorEditor' })
5550
5651
const props = defineProps<{
52+
title: String
5753
modelValue: any
5854
}>()
5955
const emit = defineEmits(['update:modelValue', 'submitDialog'])

ui/src/components/dynamics-form/items/JsonInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- Codemirror 弹出层 -->
2323
<el-dialog
2424
v-model="dialogVisible"
25-
:title="$t('views.functionLib.functionForm.form.param.code')"
25+
:title="$t('dynamicsForm.default.label')"
2626
append-to-body
2727
fullscreen
2828
>

ui/src/views/function-lib/component/FunctionFormDrawer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@
134134
</h4>
135135

136136
<div class="mb-8" v-if="showEditor">
137-
<CodemirrorEditor v-model="form.code" @submitDialog="submitCodemirrorEditor" />
137+
<CodemirrorEditor
138+
:title="$t('views.functionLib.functionForm.form.param.code')"
139+
v-model="form.code"
140+
@submitDialog="submitCodemirrorEditor"
141+
/>
138142
</div>
139143
<h4 class="title-decoration-1 mb-16 mt-16">
140144
{{ $t('common.param.outputParam') }}

ui/src/views/team/index.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="team-manage flex main-calc-height">
44
<div class="team-member p-8 border-r">
55
<div class="flex-between p-16">
6-
<h4>{{$t('views.team.member')}}</h4>
6+
<h4>{{ $t('views.team.member') }}</h4>
77
<el-button type="primary" link @click="addMember">
88
<AppIcon iconName="app-add-users" class="add-user-icon" />
99
</el-button>
@@ -29,7 +29,9 @@
2929
<div class="flex-between">
3030
<div>
3131
<span class="mr-8">{{ row.username }}</span>
32-
<el-tag v-if="isManage(row.type)" class="default-tag">{{$t('views.team.manage')}}</el-tag>
32+
<el-tag v-if="isManage(row.type)" class="default-tag">{{
33+
$t('views.team.manage')
34+
}}</el-tag>
3335
</div>
3436
<div @click.stop style="margin-top: 5px">
3537
<el-dropdown trigger="click" v-if="!isManage(row.type)">
@@ -38,9 +40,9 @@
3840
</span>
3941
<template #dropdown>
4042
<el-dropdown-menu>
41-
<el-dropdown-item @click.prevent="deleteMember(row)"
42-
>{{$t('views.team.delete.button')}}</el-dropdown-item
43-
>
43+
<el-dropdown-item @click.prevent="deleteMember(row)">{{
44+
$t('views.team.delete.button')
45+
}}</el-dropdown-item>
4446
</el-dropdown-menu>
4547
</template>
4648
</el-dropdown>
@@ -53,7 +55,7 @@
5355
</div>
5456
<div class="permission-setting flex" v-loading="rLoading">
5557
<div class="team-manage__table">
56-
<h4 class="p-24 pb-0 mb-4">{{$t('views.team.permissionSetting')}}</h4>
58+
<h4 class="p-24 pb-0 mb-4">{{ $t('views.team.permissionSetting') }}</h4>
5759
<el-tabs v-model="activeName" class="team-manage__tabs">
5860
<el-tab-pane
5961
v-for="(item, index) in settingTags"
@@ -73,7 +75,7 @@
7375
</div>
7476

7577
<div class="submit-button">
76-
<el-button type="primary" @click="submitPermissions">{{ $t('common.save')}}</el-button>
78+
<el-button type="primary" @click="submitPermissions">{{ $t('common.save') }}</el-button>
7779
</div>
7880
</div>
7981
</div>
@@ -118,7 +120,9 @@ const settingTags = reactive([
118120
119121
watch(filterText, (val) => {
120122
if (val) {
121-
filterMember.value = memberList.value.filter((v) => v.username.includes(val))
123+
filterMember.value = memberList.value.filter((v) =>
124+
v.username.toLowerCase().includes(val.toLowerCase())
125+
)
122126
} else {
123127
filterMember.value = memberList.value
124128
}

ui/src/workflow/common/NodeContainer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
:close-on-press-escape="false"
136136
:destroy-on-close="true"
137137
append-to-body
138+
@submit.prevent
138139
>
139140
<el-form label-position="top" ref="titleFormRef" :model="form">
140141
<el-form-item

ui/src/workflow/nodes/function-node/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
</h5>
8080
<div class="mb-8" v-if="showEditor">
8181
<CodemirrorEditor
82+
:title="$t('views.functionLib.functionForm.form.param.code')"
8283
v-model="chat_data.code"
8384
@wheel="wheel"
8485
style="height: 130px !important"

ui/src/workflow/nodes/variable-assign-node/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
]"
119119
>
120120
<CodemirrorEditor
121+
title="JSON"
121122
v-model="item.value"
122123
:style="{
123124
height: '100px'

0 commit comments

Comments
 (0)