This commit is contained in:
Timothy Jaeryang Baek
2026-02-27 16:41:52 -06:00
parent bbbcf27dd5
commit 3be06132db
3 changed files with 35 additions and 13 deletions
+8 -2
View File
@@ -43,7 +43,8 @@
selectedFolder,
pinnedChats,
showEmbeds,
selectedTerminalId
selectedTerminalId,
showFileNavPath
} from '$lib/stores';
import { WEBUI_API_BASE_URL } from '$lib/constants';
@@ -57,7 +58,8 @@
processDetails,
removeAllDetails,
getCodeBlockContents,
isYoutubeUrl
isYoutubeUrl,
displayFileHandler
} from '$lib/utils';
import { AudioQueue } from '$lib/utils/audio';
@@ -576,6 +578,10 @@
eventConfirmationInputPlaceholder = data.placeholder;
eventConfirmationInputValue = data?.value ?? '';
eventConfirmationInputType = data?.type ?? '';
} else if (type === 'display_file') {
if (data?.path) {
displayFileHandler(data.path, { showControls, showFileNavPath });
}
} else {
console.log('Unknown message type', data);
}