Commit 32a99e0e authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

fix: 应用插件结果返回优化

See merge request !223
parents daf2a679 a6d49706
......@@ -91,7 +91,10 @@ const parsedMarkdownPluginContent = computed(() => {
/>
</div>
<div class="flex transform flex-col duration-200 ease-in-out" :class="isFolding ? 'h-0 overflow-hidden' : 'h-fit'">
<div
class="flex transform flex-col overflow-x-auto duration-200 ease-in-out"
:class="isFolding ? 'h-0 overflow-hidden' : 'h-fit'"
>
<!-- json格式 -->
<div v-if="displayFormat === 'json'">
<div class="mt-[10px]">
......@@ -124,15 +127,15 @@ const parsedMarkdownPluginContent = computed(() => {
</div>
<!-- markdown格式 -->
<div v-if="displayFormat === 'markdown'">
<div v-else-if="displayFormat === 'markdown'">
<div class="mt-[10px]">
<MarkdownRender :raw-text-content="parsedMarkdownPluginContent" :font-size="isMobile ? '3.2vw' : '14px'" />
</div>
</div>
<!-- none格式 -->
<div v-if="displayFormat === 'none'">
<span>{{ content }}</span>
<!-- 其他格式 -->
<div v-else>
<span class="mt-[10px] break-all">{{ content }}</span>
</div>
</div>
</div>
......
......@@ -28,7 +28,9 @@ export function useDialogueFile() {
if (fileType && !documentTypeList.includes(fileType) && !imageTypeList.includes(fileType)) {
window.$message.error(
t('personal_space_module.knowledge_module.upload_document_module.upload_format_error_message'),
t(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.upload_file_format_error_message',
),
)
return false
}
......
......@@ -423,6 +423,7 @@ personal_space_module:
setting_voice_message: 'You can set the language and tone. If the selected language is inconsistent with the model language, the speech cannot be played'
setting_voice_desc: 'You can customize the voice and timbre for voice broadcast, and you can set only one at a time.'
currently_only_one_voice_can_be_set: 'Currently, you can set only one voice'
upload_file_format_error_message: 'You can upload only DOC, DOCX, TXT, PDF, MD, PNG, JPG, JPEG and WEBP format files. Please upload them again'
memory_variable_modal:
edit_memory_variable: 'Edit memory variable'
......
......@@ -421,6 +421,7 @@ personal_space_module:
setting_voice_message: '你可以设置语言和音色,若所选语言与模型语言不一致,则无法播放语音'
setting_voice_desc: '您可自定义语音及音色,用于语音播报,且每次仅可设置一种。'
currently_only_one_voice_can_be_set: '当前仅可设置一种声音'
upload_file_format_error_message: '只能上传DOC、DOCX、TXT、PDF、MD、PNG、JPG、JPEG、WEBP格式文本文件,请重新上传'
memory_variable_modal:
edit_memory_variable: '编辑记忆变量'
......
......@@ -421,6 +421,7 @@ personal_space_module:
setting_voice_message: '你可以設置語言和音色,若所選語言與模型語言不一致,則無法播放語音'
setting_voice_desc: '您可自定義語音及音色,用於語音播報,且每次僅可設置一種。'
currently_only_one_voice_can_be_set: '當前僅可設置一種聲音'
upload_file_format_error_message: '只能上傳DOC、DOCX、TXT、PDF、MD、PNG、JPG、JPEG、WEBP格式文本文件,請重新上傳'
memory_variable_modal:
edit_memory_variable: '編輯記憶變數'
......
......@@ -419,6 +419,7 @@ declare namespace I18n {
setting_voice_message: string
setting_voice_desc: string
currently_only_one_voice_can_be_set: string
upload_file_format_error_message: string
memory_variable_modal: {
edit_memory_variable: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment