refac
This commit is contained in:
1 parent
3a4b862e81
commit
139e764b2f
45 files changed
+6251
-5730
No files matched your search
@@ -171,8 +171,6 @@
|
||||
let files = [];
|
||||
let params = {};
|
||||
|
||||
|
||||
|
||||
$: if (chatIdProp) {
|
||||
navigateHandler();
|
||||
}
|
||||
@@ -962,10 +960,9 @@
|
||||
let contents = [];
|
||||
messages.forEach((message) => {
|
||||
if (message?.role !== 'user' && message?.content) {
|
||||
const {
|
||||
codeBlocks: codeBlocks,
|
||||
htmlGroups: htmlGroups
|
||||
} = getCodeBlockContents(message.content);
|
||||
const { codeBlocks: codeBlocks, htmlGroups: htmlGroups } = getCodeBlockContents(
|
||||
message.content
|
||||
);
|
||||
|
||||
if (htmlGroups && htmlGroups.length > 0) {
|
||||
htmlGroups.forEach((group) => {
|
||||
@@ -1786,10 +1783,7 @@
|
||||
const _files = structuredClone(files);
|
||||
chatRequestQueues.update((q) => ({
|
||||
...q,
|
||||
[$chatId]: [
|
||||
...(q[$chatId] ?? []),
|
||||
{ id: uuidv4(), prompt: userPrompt, files: _files }
|
||||
]
|
||||
[$chatId]: [...(q[$chatId] ?? []), { id: uuidv4(), prompt: userPrompt, files: _files }]
|
||||
}));
|
||||
// Clear input
|
||||
messageInput?.setText('');
|
||||
|
||||
Reference in new issue
Block a user