mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix: fixed the problem that the api will be called directly after selecting the chat assistant picture (#1034)
### What problem does this PR solve? fix: fixed the problem that the api will be called directly after selecting the chat assistant picture #1033 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -19,6 +19,7 @@ import ModelSetting from './model-setting';
|
||||
import PromptEngine from './prompt-engine';
|
||||
|
||||
import { useTranslate } from '@/hooks/commonHooks';
|
||||
import { getBase64FromUploadFileList } from '@/utils/fileUtil';
|
||||
import styles from './index.less';
|
||||
|
||||
const layout = {
|
||||
@ -82,12 +83,7 @@ const ChatConfigurationModal = ({
|
||||
]);
|
||||
const emptyResponse = nextValues.prompt_config?.empty_response ?? '';
|
||||
|
||||
const fileList = values.icon;
|
||||
let icon;
|
||||
|
||||
if (Array.isArray(fileList) && fileList.length > 0) {
|
||||
icon = fileList[0].thumbUrl;
|
||||
}
|
||||
const icon = await getBase64FromUploadFileList(values.icon);
|
||||
|
||||
const finalValues = {
|
||||
dialog_id: initialDialog.id,
|
||||
|
||||
Reference in New Issue
Block a user